1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
%:
dh $@ --sourcedirectory=Src
override_dh_auto_build:
dh_auto_build --sourcedirectory=Src \
-- CFLAGS="$(shell dpkg-buildflags --get CFLAGS)"
get-orig-source:
@git checkout upstream
@git pull https://github.com/tcolar/wmfrog.git
@grep -Po '(?<=\#define VERSION ").*(?=\")' wmfrog/Src/wmfrog.c \
> version
@git show HEAD^:wmfrog/Src/wmfrog.c | \
grep -Po '(?<=\#define VERSION ").*(?=\")' > oldversion
@if test `cat oldversion` = `cat version` ; then \
echo "`cat version`+git`date -d @\`git log -1 --pretty=format:%ct\` +%Y%m%d`" > version; \
fi
@echo "Enter "`cat version`" at the prompt below:"
@cd wmfrog; \
./builtDist.sh
@mv -v wmfrog/dist/wmfrog-`cat version`.tgz ../wmfrog_`cat version`.orig.tar.gz
@rm version
@rm oldversion
@git checkout wmfrog/dist/weather.pl
@git checkout wmfrog/dist/wmfrog
@git checkout master
|