diff options
author | Steven Knight <knight@baldmt.com> | 2001-11-13 11:07:08 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2001-11-13 11:07:08 (GMT) |
commit | 2f12a3b0f500152380daf9f8a3868ff9e3403636 (patch) | |
tree | 3f9569b6757ac9ed6f8cd8662a4bdadfbc0b97dc /Construct | |
parent | ee0cf0ee63373cbdf66686cbf3a7cd82ef73441f (diff) | |
download | SCons-2f12a3b0f500152380daf9f8a3868ff9e3403636.zip SCons-2f12a3b0f500152380daf9f8a3868ff9e3403636.tar.gz SCons-2f12a3b0f500152380daf9f8a3868ff9e3403636.tar.bz2 |
Generalize DH_COMPAT for various Debian build levels.
Diffstat (limited to 'Construct')
-rw-r--r-- | Construct | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -59,6 +59,10 @@ $jw = cons::whereis('jw'); $dh_builddeb = cons::whereis('dh_builddeb'); $fakeroot = cons::whereis('fakeroot'); +# My installation on Red Hat doesn't like any debhelper version +# beyond 2, so let's use 2 as the default on any non-Debian build. +$DH_COMPAT = (-f "/etc/debian_version") ? 3 : 2; + # # Now grab the information that we "build" into the files (using sed). # @@ -335,7 +339,7 @@ if ($dh_builddeb && $fakeroot){ map("build/script/$_", @script_files), qq(rm -rf build/engine/build build/engine/dist rm -rf build/script/build build/script/dist - fakeroot make -f debian/rules ENVOKED_BY_CONSTRUCT=1 binary - env DH_COMPAT=3 dh_clean + fakeroot make -f debian/rules DH_COMPAT=$DH_COMPAT ENVOKED_BY_CONSTRUCT=1 binary + env DH_COMPAT=$DH_COMPAT dh_clean )); } |