chiark / gitweb /
WIP installation stuff
[modbot-urcm.git] / install-aggregates
diff --git a/install-aggregates b/install-aggregates
new file mode 100755 (executable)
index 0000000..10e2e6d
--- /dev/null
@@ -0,0 +1,29 @@
+#!/bin/bash
+set -e
+
+basedir=`dirname "$0"`
+case "$basedir" in
+.|..)          basedir="$basedir/.."           ;;
+*)             basedir=`dirname "$basedir"`    ;;
+esac
+cd $basedir
+
+for f in       crontab forward-suffix forward-slimy
+do
+       d=$f
+       g=$f.combined
+       >$g
+
+       case $f in
+       forward-*)      d=.$d; echo '# Exim filter' >>$g ;;
+       esac
+
+       echo '# autogenerated - do not edit' >>$g
+       if test -f $f.part; then cat $f.part >>$g; fi
+       cat live-*/$f.part >>$g
+
+       mv -f $g $d
+       case $f in
+       crontab)        crontab crontab ;;
+       esac
+done