rebuild waf script
* debian/rules: - rebuild waf script before using it. closes: #645191
This commit is contained in:
parent
b104b685da
commit
23b89cca6b
2 changed files with 15 additions and 3 deletions
2
debian/changelog
vendored
2
debian/changelog
vendored
|
@ -8,6 +8,8 @@ midori (0.4.4-1) UNRELEASED; urgency=low
|
|||
* debian/midori.maintscript:
|
||||
- handle the /etc/xdg/midori/extensions/libadblock.so removal there.
|
||||
closes: #660303
|
||||
* debian/rules:
|
||||
- rebuild waf script before using it. closes: #645191
|
||||
|
||||
-- Yves-Alexis Perez <corsac@debian.org> Thu, 08 Mar 2012 23:42:54 +0100
|
||||
|
||||
|
|
16
debian/rules
vendored
16
debian/rules
vendored
|
@ -23,7 +23,16 @@ endif
|
|||
%:
|
||||
dh $@
|
||||
|
||||
WAF=./waf
|
||||
WAF=./waf.regen
|
||||
|
||||
$(WAF): waf
|
||||
# rebuild the waf script
|
||||
sed < waf -e '1,/^#==>$$/ d' -e '/^#<==$$/ d' | tr -d '\n' | sed -e 's/.//' -e 's/#[*]/\n/g' -e 's/#%/\r/g' > waf.orig.tar.bz2
|
||||
(sed -n < waf -e '1,/^#==>$$/ p'; echo REPLACED BY ENCODED TAR.BZ2; sed -n < waf -e '/^#<==$$/ p') > waf.hdr
|
||||
(sed -n < waf.hdr -e '1,/^#==>$$/ p'; printf '#'; perl -pe < waf.orig.tar.bz2 's/\n/#*/g; s/\r/#%/g;'; echo; sed -n < waf.hdr -e '/^#<==$$/ p') > waf.regen
|
||||
chmod 755 waf.regen
|
||||
# ensure both scripts are the same
|
||||
cmp waf waf.regen && (rm waf.hdr waf.orig.tar.bz2)
|
||||
|
||||
debian/presubj: debian/presubj.in
|
||||
@echo "presubj parameters:"
|
||||
|
@ -37,13 +46,14 @@ debian/presubj: debian/presubj.in
|
|||
override_dh_install: debian/presubj
|
||||
$(CMD) --fail-missing
|
||||
|
||||
override_dh_auto_clean:
|
||||
override_dh_auto_clean: $(WAF)
|
||||
$(WAF) --nocache distclean
|
||||
rm -rf _build_
|
||||
rm -rf .waf*
|
||||
rm -rf .lock-wscript
|
||||
rm -f $(WAF)
|
||||
|
||||
override_dh_auto_configure:
|
||||
override_dh_auto_configure: $(WAF)
|
||||
$(WAF) --nocache configure --debug-level=none --prefix /usr
|
||||
|
||||
override_dh_auto_build:
|
||||
|
|
Loading…
Reference in a new issue