Add libxcvt to build.sh & xorg.modules
[xorg-util-modular.git] / roll-it-up.sh
blob451fe066d659d133f967cb1ac11e9b74656b9a06
1 #!/bin/sh
3 # This script generates a set of $category/$module and $everything/$module
4 # links in the current directory, given a list of module versions for this
5 # release. See module-list.txt for the last release's list.
7 individual_dir="/srv/xorg.freedesktop.org/archive/individual/"
8 relative_dir="../../../individual"
10 if [ ! -d $individual_dir ]; then
11 echo "$i not a suitable base directory for individual packages."
12 exit 1
15 mkdir -p everything
17 while read name; do
18 list=`find $individual_dir -name $name.tar\* `
19 if test "x$list" = x; then
20 # Since .../xcb is a symlink, find doesn't follow it normally,
21 # so explicitly double-check there
22 list=`find ${individual_dir}xcb/ -name $name.tar\* `
23 if test "x$list" = x; then
24 echo "Couldn't find module ${name}"
27 for i in $list; do
28 i=`echo $i | sed "s|$individual_dir||g"`
29 typedir=`dirname $i`
30 tarname=`basename $i`
32 mkdir -p $typedir
33 ln -sf $relative_dir/$i $i
34 ln -sf $relative_dir/$i everything/$tarname
36 # cd first and use $tarname so that only filename appears in output
37 md5=`cd everything ; md5sum $tarname`
38 sha1=`cd everything ; sha1sum $tarname`
39 sha256=`cd everything ; sha256sum $tarname`
40 cat >> $typedir/CHECKSUMS <<EOF
41 ${tarname}:
42 MD5: $md5
43 SHA1: $sha1
44 SHA256: $sha256
46 EOF
47 cat >> everything/CHECKSUMS <<EOF
48 ${tarname}:
49 MD5: $md5
50 SHA1: $sha1
51 SHA256: $sha256
53 EOF
55 done
56 done