Add script used to generate Consolidated Changelogs for katamaris
[xorg-util-modular.git] / roll-it-up.sh
blobf62e564f386cbb93477938accf947feedb0188ab
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 xcb_dir="/srv/xcb.freedesktop.org/www/dist/"
9 relative_dir="../../../individual"
11 if [ ! -d $individual_dir ]; then
12 echo "$i not a suitable base directory for individual packages."
13 exit 1
16 mkdir -p everything
18 while read name; do
19 list=`find $individual_dir -name $name.tar\* `
20 if test "x$list" != x; then
21 for i in $list; do
22 i=`echo $i | sed -e "s|$individual_dir||g"`
23 mkdir -p `dirname $i`
24 ln -sf $relative_dir/$i $i
25 ln -sf $relative_dir/$i everything/`basename $i`
26 done
27 else
28 list=`find $xcb_dir -name $name.tar\* `
29 if test "x$list" = x; then
30 echo "Couldn't find module ${name}"
32 for i in $list; do
33 mkdir -p xcb
34 b=`basename $i`
35 cp -pf $i xcb/$b
36 ln -sf ../xcb/$b everything/$b
37 done
39 done