File: rules

package info (click to toggle)
wmfrog 0.3.1%2Bgit20161115-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 460 kB
  • sloc: ansic: 677; perl: 267; makefile: 51
file content (30 lines) | stat: -rwxr-xr-x 921 bytes parent folder | download | duplicates (2)
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