Backup and restore mutable files to allow multiple builds.
This commit is contained in:
11
debian/rules
vendored
11
debian/rules
vendored
@@ -6,16 +6,27 @@ include /usr/share/dpkg/buildflags.mk
|
|||||||
export DEB_CFLAGS_MAINT_APPEND = $(CPPFLAGS) -Wall -Wno-deprecated-declarations -pedantic
|
export DEB_CFLAGS_MAINT_APPEND = $(CPPFLAGS) -Wall -Wno-deprecated-declarations -pedantic
|
||||||
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
|
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
|
||||||
|
|
||||||
|
MUTABLE_FILES := build.h $(wildcard locale/*.po)
|
||||||
|
|
||||||
%:
|
%:
|
||||||
dh $@
|
dh $@
|
||||||
|
|
||||||
override_dh_auto_configure:
|
override_dh_auto_configure:
|
||||||
|
for f in $(MUTABLE_FILES); do \
|
||||||
|
cp -an $$f $$f.orig; \
|
||||||
|
done
|
||||||
dh_auto_configure -- \
|
dh_auto_configure -- \
|
||||||
--localedir=\$${prefix}/share/locale \
|
--localedir=\$${prefix}/share/locale \
|
||||||
--docdir=\$${prefix}share/doc \
|
--docdir=\$${prefix}share/doc \
|
||||||
--docsubdir=dvdisaster-doc/html \
|
--docsubdir=dvdisaster-doc/html \
|
||||||
--with-embedded-src-path=no
|
--with-embedded-src-path=no
|
||||||
|
|
||||||
|
override_dh_clean:
|
||||||
|
dh_clean -X.orig
|
||||||
|
for f in $(MUTABLE_FILES); do \
|
||||||
|
test ! -f $$f.orig || mv -f $$f.orig $$f; \
|
||||||
|
done
|
||||||
|
|
||||||
override_dh_auto_build-arch:
|
override_dh_auto_build-arch:
|
||||||
make all
|
make all
|
||||||
|
|
||||||
|
|||||||
1
debian/source/options
vendored
Normal file
1
debian/source/options
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
no-unapply-patches
|
||||||
Reference in New Issue
Block a user