File: rules

package info (click to toggle)
svn-all-fast-export 1.0.5-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 304 kB
  • sloc: cpp: 2,471; makefile: 22
file content (34 lines) | stat: -rwxr-xr-x 1,161 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
31
32
33
34
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

%:
	dh  $@

#overide_dh_configure:
#	qmake-qt4

# Copied from /usr/share/cdbs/1/rules/buildvars.mk
VERSION := $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ' ')
NOEPOCH_VERSION := $(shell echo $(VERSION) | cut -d: -f2-)
UPSTREAM_VERSION := $(shell echo $(NOEPOCH_VERSION) | sed 's/-[^-]*$$//')

clean-get-orig-source:
	@@rm -rf ../tarballs/svn-all-fast-export-$(UPSTREAM_VERSION)

get-orig-source: clean-get-orig-source
	@@dh_testdir
	@@[ -d ../tarballs/. ]||mkdir -p ../tarballs
	@@echo 'Checking out for repacking ...'
	@@git clone git://gitorious.org/svn2git/svn2git.git \
		../tarballs/svn-all-fast-export-$(UPSTREAM_VERSION)
	@@echo 'Getting the changelog ...'
	@@cd ../tarballs/svn-all-fast-export-$(UPSTREAM_VERSION); \
		git log > ChangeLog
	@@echo Creating the tarball ...
	@@cd ../tarballs/; \
		rm -rf svn-all-fast-export-$(UPSTREAM_VERSION)/.git; \
		tar zcf ../tarballs/svn-all-fast-export-$(UPSTREAM_VERSION).tar.gz svn-all-fast-export-$(UPSTREAM_VERSION)
	@@rm -rf ../tarballs/svn-all-fast-export-$(UPSTREAM_VERSION)
	@@echo Ready for packaging.