X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=scripts%2Fdebian%2Fbyhand-tag;h=87bb68878aa83f1e79fe89c07a9456dbbe3b15ca;hb=5ec8ebfaf6690e95ce7a7ffdcd6c298d5dceac90;hp=e9cb43acc6b07c9031d94193612fc5f8c974fb04;hpb=16f731a893f0ba036a995c25b8b5f3490394070e;p=dak.git diff --git a/scripts/debian/byhand-tag b/scripts/debian/byhand-tag index e9cb43ac..87bb6887 100755 --- a/scripts/debian/byhand-tag +++ b/scripts/debian/byhand-tag @@ -1,4 +1,10 @@ -#!/bin/sh -ue +#!/bin/sh + +set -u +set -e + +export SCRIPTVARS=/srv/ftp-master.debian.org/dak/config/debian/vars +. $SCRIPTVARS # Tarball to read, compressed with gzip INPUT="${1:?"Usage: $0 filename"}" @@ -7,7 +13,7 @@ INPUT="${1:?"Usage: $0 filename"}" CHECKRE='^[a-z0-9A-Z.+-]+[[:space:]]+Tag[[:space:]]+[a-z0-9:. ,{}+-]+$' # This must end with / -TARGET=/srv/ftp.debian.org/scripts/external-overrides/ +TARGET=/srv/ftp-master.debian.org/scripts/external-overrides/ # Read the main directory from the tarball DIR="`tar ztf \"$INPUT\" | tac | tail -n 1`" @@ -38,7 +44,7 @@ mv "$OUTNONFREE" "$TARGET"tag.non-free chmod 644 "$TARGET"tag "$TARGET"tag.contrib "$TARGET"tag.non-free -(cd $TARGET && ./mk-extra-overrides.sh) +(cd $TARGET && $scriptsdir/mk-extra-overrides.sh) trap - EXIT