mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-12-04 14:46:30 -05:00
22 lines
588 B
Bash
22 lines
588 B
Bash
|
#!/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"
|