X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=scripts%2Fdebian%2Fbyhand-tag;h=8dfa17a6a7eff6fed905eb328118524e24530336;hb=2a068f576aeaa132f49573bbf1fa337a250481d6;hp=3bb3280879bd4cabe3d8106da2121fe4d7893a30;hpb=847d581f684595642a21857fe1ef03b76edf346e;p=dak.git diff --git a/scripts/debian/byhand-tag b/scripts/debian/byhand-tag index 3bb32808..8dfa17a6 100755 --- a/scripts/debian/byhand-tag +++ b/scripts/debian/byhand-tag @@ -1,13 +1,19 @@ -#!/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"}" # Regular expression used to validate tag lines -CHECKRE='^[a-z0-9A-Z.+-]+[[:space:]]+Tag[[:space:]]+[a-z0-9:. ,+-]+$' +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,6 +44,13 @@ mv "$OUTNONFREE" "$TARGET"tag.non-free chmod 644 "$TARGET"tag "$TARGET"tag.contrib "$TARGET"tag.non-free +(cd $TARGET && $scriptsdir/mk-extra-overrides.sh) +(cd "$TARGET" \ + && dak external-overrides import unstable main Tag