summaryrefslogtreecommitdiff
path: root/roll-it-up.sh
diff options
context:
space:
mode:
Diffstat (limited to 'roll-it-up.sh')
-rwxr-xr-xroll-it-up.sh28
1 files changed, 28 insertions, 0 deletions
diff --git a/roll-it-up.sh b/roll-it-up.sh
new file mode 100755
index 0000000..fd426c6
--- /dev/null
+++ b/roll-it-up.sh
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+# This script generates a set of $category/$module and $everything/$module
+# links in the current directory, given a list of module versions for this
+# release. See module-list.txt for the last release's list.
+
+individual_dir="/srv/xorg.freedesktop.org/archive/individual/"
+relative_dir="../../../individual"
+
+if [ ! -d $individual_dir ]; then
+ echo "$i not a suitable base directory for individual packages."
+ exit 1
+fi
+
+mkdir -p everything
+
+while read name; do
+ list=`find $individual_dir -name $name.tar\* `
+ if test "x$list" = x; then
+ echo "Couldn't find module ${name}"
+ fi
+ for i in $list; do
+ i=`echo $i | sed "s|$individual_dir||g"`
+ mkdir -p `dirname $i`
+ ln -sf $relative_dir/$i $i
+ ln -sf $relative_dir/$i everything/`basename $i`
+ done
+done