1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-11-03 04:17:17 -05:00
icecast-server/ci/fix-dsc.sh

22 lines
588 B
Bash
Executable File

#!/bin/bash -xe
BASE=`dirname $0`
TARGET=icecast.dsc
TARBASE=icecast2_${ICECAST_CI_VERSION:?Missing ICECAST_CI_VERSION}
sed "s/^Version: .*$/Version: $ICECAST_CI_VERSION-1/" $BASE/$TARGET.templ > $TARGET
function helper {
HEADER=$1
FUNCTION=$2
echo "$HEADER" >> $TARGET
for FILE in $TARBASE.orig.tar.gz $TARBASE-1.debian.tar.gz; do
echo -e " `$FUNCTION $FILE | awk '{ print \$1 }'` `stat -c '%s' $FILE` $FILE" >> $TARGET
done
}
helper "Checksums-Sha1:" "sha1sum"
helper "Checksums-Sha256:" "sha256sum"
helper "Files:" "md5sum"