NF: provide debian/rules build-standalone
This commit is contained in:
parent
38e03d5b3a
commit
bfef0ba69f
3 changed files with 35 additions and 9 deletions
16
debian/create-standalone-changelog
vendored
Executable file
16
debian/create-standalone-changelog
vendored
Executable file
|
@ -0,0 +1,16 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# A little helper script to build a package with standalone git-annex
|
||||
# It relies on being run within git-annex Git repository
|
||||
#
|
||||
set -eu
|
||||
|
||||
umask 022
|
||||
|
||||
git checkout debian/changelog
|
||||
|
||||
ANNEX_VERSION=$(git describe HEAD)
|
||||
ANNEX_NDVERSION=$( echo ${ANNEX_VERSION} | sed -e 's,-,+git,' -e 's,$,-1~ndall+1,')
|
||||
|
||||
dch --noconf -v ${ANNEX_NDVERSION} \
|
||||
--force-bad-version --force-distribution -D neurodebian "Backported fresh snapshot"
|
15
debian/patches/standalone-build
vendored
15
debian/patches/standalone-build
vendored
|
@ -54,16 +54,10 @@ Last-Update: 2015-04-20
|
|||
+debian/git-annex-standalone/usr/lib/git-annex.linux/usr/share/man/man1/git-annex*
|
||||
--- a/debian/rules
|
||||
+++ b/debian/rules
|
||||
@@ -3,7 +3,17 @@
|
||||
export CABAL=debian/cabal-wrapper
|
||||
@@ -12,6 +12,15 @@ export RELEASE_BUILD=1
|
||||
# Rules for providing a standalone build of annex.
|
||||
#
|
||||
|
||||
# Do use the changelog's version number, rather than making one up.
|
||||
-export RELEASE_BUILD=1
|
||||
+export RELEASE_BUILD=0
|
||||
|
||||
%:
|
||||
dh $@
|
||||
+
|
||||
+override_dh_auto_build:
|
||||
+ make linuxstandalone
|
||||
+
|
||||
|
@ -73,3 +67,6 @@ Last-Update: 2015-04-20
|
|||
+override_dh_fixperms:
|
||||
+ dh_fixperms -Xld-linux
|
||||
+
|
||||
build-standalone:
|
||||
[ -e .git ]
|
||||
git checkout debian/changelog
|
||||
|
|
13
debian/rules
vendored
13
debian/rules
vendored
|
@ -7,3 +7,16 @@ export RELEASE_BUILD=1
|
|||
|
||||
%:
|
||||
dh $@
|
||||
|
||||
#
|
||||
# Rules for providing a standalone build of annex.
|
||||
#
|
||||
|
||||
build-standalone:
|
||||
[ -e .git ]
|
||||
git checkout debian/changelog
|
||||
quilt pop -a || :
|
||||
QUILT_SERIES=series.standalone-build quilt push -a
|
||||
debian/create-standalone-changelog
|
||||
dpkg-buildpackage -rfakeroot
|
||||
quilt pop -a
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue