]> git.decadent.org.uk Git - dak.git/commitdiff
mk-extra-overrides
authorJoerg Jaspert <joerg@debian.org>
Sat, 8 Aug 2009 18:16:33 +0000 (20:16 +0200)
committerJoerg Jaspert <joerg@debian.org>
Sat, 8 Aug 2009 18:16:33 +0000 (20:16 +0200)
properly add this script to $VCS

Signed-off-by: Joerg Jaspert <joerg@debian.org>
scripts/debian/mk-extra-overrides.sh [new file with mode: 0755]

diff --git a/scripts/debian/mk-extra-overrides.sh b/scripts/debian/mk-extra-overrides.sh
new file mode 100755 (executable)
index 0000000..84eb970
--- /dev/null
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+# regexp to test if a file is okay:
+#  grep -Ev '^[a-z0-9A-Z.+-]+\   Task    [a-z0-9:. ,+-]+$' task*
+
+x="build-essential tag task"
+opath="/org/ftp.debian.org/scripts/override"
+
+for s in squeeze sid; do
+  for c in main contrib non-free; do
+    echo "Making $opath/override.$s.extra.$c"
+    if [ "$c" = "main" ]; then
+      c2="";
+    else
+      c2=".$c"
+    fi
+    for t in $x; do
+      if [ -e "$t$c2" ]; then cat $t$c2; fi
+      if [ -e "$t.$s$c2" ]; then cat $t.$s$c2; fi
+    done | sort > $opath/override.$s.extra.$c
+  done
+done
+