]> git.donarmstrong.com Git - debhelper.git/commitdiff
r153: Initial Import
authorjoey <joey>
Tue, 17 Aug 1999 05:06:17 +0000 (05:06 +0000)
committerjoey <joey>
Tue, 17 Aug 1999 05:06:17 +0000 (05:06 +0000)
Dh_Getopt.pm
debian/changelog
dh_movefiles
doc/PROGRAMMING

index 42ad7abf23ac7e0e980f1c74911f6a37568116eb..e0b3896dc2b0eb1da8785615265c86223b21c975 100644 (file)
@@ -111,6 +111,8 @@ sub parseopts {
                "no-act" => \$options{NO_ACT},
        
                "init-script=s" => \$options{INIT_SCRIPT},
+               
+               "sourcedir=s" => \$options{SOURCEDIR},
        );
 
        if (!$ret) {
index 5c2d87a6ab6fd9bc25d79f6832038b6c9fe89943..f0c1a5d7178befeb2c4ea0300201827b1183a038 100644 (file)
@@ -1,3 +1,13 @@
+debhelper (1.2.17) unstable; urgency=low
+
+  * dh_makeshlibs: relaxed regexp to find library name and number a little so
+    it will work on libraries with a major but no minor version in their
+    filename (examples of such: libtcl8.0.so.1, libBLT-unoff.so.1)
+  * dh_movefiles: added --sourcedir option to make it move files out of 
+    some directory besides debian/tmp (#30221)
+
+ -- Joey Hess <joeyh@master.debian.org>  Fri,  4 Dec 1998 13:56:57 -0800
+
 debhelper (1.2.16) unstable; urgency=low
 
   * dh_installchangelogs: now detects html changelogs and installs them as
index 9819fd2d2841c54273df483ed03a3164d3777852..2ed8e3763fa0e0e11de5587bb50d167dc1fde7c3 100755 (executable)
@@ -12,8 +12,18 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) {
        $TMP=tmpdir($PACKAGE);
        $files=pkgfile($PACKAGE,"files");
 
-       if (! -d "debian/tmp") {
-               error("debian/tmp does not exist.");
+       if ($dh{SOURCEDIR}) {
+               if ($dh{SOURCEDIR}=~m:^/:) {
+                       error("The sourcedir must be a relative filename, not starting with `/'.");
+               }
+               $sourcedir=$dh{SOURCEDIR};
+       }
+       else {
+               $sourcedir="debian/tmp";
+       }
+
+       if (! -d $sourcedir) {
+               error("$sourcedir does not exist.");
        }
 
        @tomove=();
@@ -27,8 +37,8 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) {
                push @tomove, @ARGV;
        }
 
-       if (@tomove && $TMP eq "debian/tmp") {
-               error("I was asked to move files from debian/tmp to debian/tmp.");
+       if (@tomove && $TMP eq $sourcedir) {
+               error("I was asked to move files from $sourcedir to $sourcedir.");
        }
 
        if (@tomove) {
@@ -38,7 +48,7 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) {
                # Now we need to expand wildcards in @tomove.
                @filelist=();
                foreach (@tomove) {
-                       push @filelist, glob("debian/tmp/$_");
+                       push @filelist, glob("$sourcedir/$_");
                }
                
                # Order the files. First all real files, then symlinks. 
@@ -48,16 +58,16 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) {
                foreach (@filelist) {
                        $file=$_;
                        $ret=1 if (! -e $file && ! -l $file);
-                       $file=~s:^debian/tmp/+::;
-                       complex_doit("(cd debian/tmp ; find $file ! -type d -and ! -type l -print || true) >> movelist");
+                       $file=~s:^$sourcedir/+::;
+                       complex_doit("(cd $sourcedir ; find $file ! -type d -and ! -type l -print || true) >> movelist");
                }
                foreach (@filelist) {
                        $file=$_;
                        $ret=1 if (! -e $file && ! -l $file);
-                       $file=~s:^debian/tmp/+::;
-                       complex_doit("(cd debian/tmp ; find $file ! -type d -and -type l -print || true) >> movelist");
+                       $file=~s:^$sourcedir/+::;
+                       complex_doit("(cd $sourcedir ; find $file ! -type d -and -type l -print || true) >> movelist");
                }
-               complex_doit("(cd debian/tmp;tar --create --remove-files --files-from=../../movelist --file -) | (cd $TMP;tar xpf -)");
+               complex_doit("(cd $sourcedir;tar --create --remove-files --files-from=../../movelist --file -) | (cd $TMP;tar xpf -)");
                doit("rm","-f","movelist");
        }
 }
index da21ea9da76795cd4061fb77cdb893a1a0f15049..e40f042114924b183a3fd651310773fd7f9b7017 100644 (file)
@@ -116,6 +116,8 @@ switch              variable        description
 --init-script  INIT_SCRIPT     will be set to a string, which specifies an
                                init script name (probably only
                                dh_installinit will ever use this)
+--sourcedir    SOURCEDIR       will be set to a string (probably only
+                               dh_movefiles will ever use this)
 
 Any additional command line parameters that do not start with "-" will be 
 ignored, and you can access them later just as you normally would.