+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
$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=();
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) {
# 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.
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");
}
}
--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.