]> git.decadent.org.uk Git - dak.git/blobdiff - scripts/debian/byhand-debian-faq
Pass suite name to the autobyhand scripts
[dak.git] / scripts / debian / byhand-debian-faq
index b436dc728839c549f7c88811849eccdc7781bc85..e87f02cbc8e5ae3b61b893c66105c65c53ae0c51 100755 (executable)
@@ -28,8 +28,8 @@ export SCRIPTVARS=/srv/ftp-master.debian.org/dak/config/debian/vars
 
 scriptname=byhand-debian-faq
 
-if [ $# -lt 4 ]; then
-    echo "usage: ${scriptname} <byhand-file> <version> <arch> <changes-file>" >&2
+if [ $# -lt 5 ]; then
+    echo "usage: ${scriptname} <byhand-file> <version> <arch> <changes-file> <suite>" >&2
     exit 1
 fi
 
@@ -38,8 +38,8 @@ byhand_file="${byhand_path##*/}"
 version="${2}"
 architecture="${3}"
 changes="${4}"
+suite="${5}"
 
-suite="$(awk '/^Distribution:/ { print $2 }' < "${changes}")"
 case "${suite}" in
     unstable|sid)
         : # okay