mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2024-09-19 19:22:14 +02:00
debian/rules:
- New target prep: Create a needed tar.gz file to build a non-nativ .dpkg - New target build-package: Call this target to build a shiny new .dpkg file. git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1313 a1433add-5e2c-0410-b055-b7f2511e0802
This commit is contained in:
parent
a79d0d4c79
commit
78c07dbd42
13
debian/rules
vendored
13
debian/rules
vendored
@ -4,6 +4,10 @@
|
||||
# Uncomment this to turn on verbose mode.
|
||||
#export DH_VERBOSE=1
|
||||
|
||||
export PFADIR = $(shell pwd)
|
||||
export VERSION = $(shell grep -E "version = '.*';" functions.inc.php |sed -e "s/.version = '//" |sed -e "s/';.*//" |sed -e "s/ /-/g")
|
||||
export DEBVERSION = $(shell grep -E "postfixadmin .([0-9]+|\.)+" debian/changelog |head -1 |sed -e "s/postfixadmin .//" |sed -e "s/-.*//")
|
||||
|
||||
include /usr/share/quilt/quilt.make
|
||||
|
||||
build: build-arch build-indep
|
||||
@ -14,6 +18,15 @@ build-stamp: $(QUILT_STAMPFN)
|
||||
#dh_testroot
|
||||
touch build-stamp
|
||||
|
||||
# Create a needed tar.gz file to build a non-nativ .dpkg
|
||||
prep:
|
||||
rm -f ../postfixadmin_*orig.tar.gz
|
||||
cd ..; tar --exclude-vcs --exclude=postfixadmin/debian --exclude=postfixadmin/.pc -czf postfixadmin_${DEBVERSION}.orig.tar.gz postfixadmin
|
||||
|
||||
# Call this target to build a shiny new .dpkg file.
|
||||
build-package: prep
|
||||
dh_testdir
|
||||
cd ${PFADIR}; dpkg-buildpackage -rfakeroot
|
||||
|
||||
clean: unpatch
|
||||
dh_testdir
|
||||
|
Loading…
Reference in New Issue
Block a user