Commit 9921731a authored by Andreas Tille's avatar Andreas Tille

Upstream now uses tags -> remove get-orig-source, adapt watch

parent 34e109a4
facedetect (0.0.+20150428-2) UNRELEASED; urgency=medium
facedetect (0.1-1) UNRELEASED; urgency=medium
* New upstream version
* Upstream now uses tags -> remove get-orig-source, adapt watch
* prevent "VisibleDeprecationWarning: using a non-integer number
instead of an integer will result in an error in the future"
-- Andreas Tille <tille@debian.org> Sun, 15 May 2016 15:13:35 +0200
-- Andreas Tille <tille@debian.org> Wed, 21 Dec 2016 22:49:37 +0100
facedetect (0.0.+20150428-1) unstable; urgency=medium
......
#!/bin/sh -e
set -x
COMPRESS=xz
NAME=`dpkg-parsechangelog | awk '/^Source/ { print $2 }'`
MVERSION=`dpkg-parsechangelog | awk '/^Version:/ { print $2 }' | sed 's/^\([0-9\.]\+\)[+~][-0-9]\+$/\1/'`
mkdir -p ../tarballs
cd ../tarballs
# need to clean up the tarballs dir first because upstream tarball might
# contain a directory with unpredictable name
rm -rf *
git clone --quiet https://github.com/wavexx/${NAME}.git
cd ${NAME}
VERSION=${MVERSION}+`date -d @$(git show --format="%at" | head -n1) +%Y%m%d`
# for esthetical reasons set file timestamps (if git-restore-mtime is installed)
git restore-mtime || true
cd ..
TARDIR=${NAME}-${VERSION}
mv ${NAME} ${TARDIR}
rm -rf ${TARDIR}/.git
GZIP="--best --no-name" tar --owner=root --group=root --mode=a+rX -caf "$NAME"_"$VERSION".orig.tar.${COMPRESS} "${TARDIR}"
rm -rf ${TARDIR}
version=3
version=4
https://github.com/wavexx/facedetect/releases .*/archive/facedetect-(\d[\d.-]+)\.(?:tar(?:\.gz|\.bz2)?|tgz)
#opts="compression=xz" \
# https://www.thregr.org/~wavexx/software/facedetect/ releases/facedetect-(\d[\d.]+)\.zip
https://github.com/wavexx/facedetect/releases .*/archive/v(\d[\d.-]+)\.(?:tar(?:\.gz|\.bz2)?|tgz)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment