Dash:
[t2-trunk.git] / package / xorg / package-modular-x.sh
blob8760b78e511761023c5a3723e40b815e021468a1
1 #!/bin/bash
2 # --- T2-COPYRIGHT-NOTE-BEGIN ---
3 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 #
5 # T2 SDE: package/.../package-modular-x.sh
6 # Copyright (C) 2004 - 2005 The T2 SDE Project
7 #
8 # More information can be found in the files COPYING and README.
9 #
10 # This program is free software; you can redistribute it and/or modify
11 # it under the terms of the GNU General Public License as published by
12 # the Free Software Foundation; version 2 of the License. A copy of the
13 # GNU General Public License can be found in the file COPYING.
14 # --- T2-COPYRIGHT-NOTE-END ---
16 curl http://xorg.freedesktop.org/X11R7.0-RC0/everything/ |
17 tr \" "\n" | grep "tar.bz2$" |
18 sed -e s/.tar.bz2// -e 's/-\([0-9]\)/ \1/' |
19 while read pkg ver
21 echo $pkg $ver
22 file=$pkg
23 pkg=`echo $pkg | tr A-Z a-z`
24 mkdir -p package/x11-modular/$pkg
25 cat > package/x11-modular/$pkg/$pkg.desc <<-EOT
26 [I] A modular X package
28 [T] A modular X package
30 [U] http://www.X.org
32 [A] X.org Foundation {http://www.X.org}
33 [M] Rene Rebe <rene@t2-project.org>
35 [C] base/x11
37 [L] OpenSource
38 [S] Stable
39 [V] $ver
40 [P] X -----5---9 112.600
42 [O] . package/x11-modular/*/modular-x-conf.in
44 [D] 0 $file-$ver.tar.bz2 http://xorg.freedesktop.org/X11R7.0-RC0/everything/
45 EOT
46 done