File: rules

package info (click to toggle)
jquery-ui-touch-punch.js 0.0~git20141218.2.4bc0091%2Bdfsg1-4.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 64 kB
  • sloc: javascript: 83; makefile: 24
file content (30 lines) | stat: -rwxr-xr-x 889 bytes parent folder | download
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

%:
	dh $@

override_dh_auto_build:
	uglifyjs -o jquery.ui.touch-punch.min.js jquery.ui.touch-punch.js

override_dh_auto_clean:
	dh_clean
	rm -f jquery.ui.touch-punch.min.js

.PHONY: get-orig-source
PKD := $(abspath $(dir $(MAKEFILE_LIST)))
PKG := $(word 2,$(shell dpkg-parsechangelog -l$(PKD)/changelog | grep ^Source))
tmpdir:= $(shell mktemp -d)
wrkdir:= $(shell pwd)

get-orig-source:
	@echo "# Downloading..."
	cd ${tmpdir} && \
	wget https://github.com/furf/jquery-ui-touch-punch/archive/master.tar.gz && \
	tar xf master.tar.gz && \
	mv jquery-ui-touch-punch-master ${PKG} && \
	cd ${PKG} && \
	rm *.min.js && \
	tar cf ${wrkdir}/${PKG}_0.0~gitVERSION.COMMIT.ID+dfsg1.orig.tar * ; \
	gzip --best ${wrkdir}/${PKG}_0.0~gitVERSION.COMMIT.ID+dfsg1.orig.tar
	rm -rf ${tmpdir}
	@echo "Please rename the tarball depending on the version and commit it with pristine-tar"