]> git.donarmstrong.com Git - debhelper.git/commitdiff
r97: Initial Import
authorjoey <joey>
Tue, 17 Aug 1999 04:54:19 +0000 (04:54 +0000)
committerjoey <joey>
Tue, 17 Aug 1999 04:54:19 +0000 (04:54 +0000)
debian/changelog
dh_movefiles
dh_movefiles.1

index 88d8c7f8f3dd16daf9b71fb3a514f7ea598b6464..136bf0f0505615834339f75ea703c131ab736c4f 100644 (file)
@@ -1,3 +1,9 @@
+debhelper (0.99.1) unstable; urgency=low
+
+  * dh_installcron: now supports /etc/cron.d (#25112).
+
+ -- Joey Hess <joeyh@master.debian.org>  Mon, 27 Jul 1998 20:18:47 -0700
+
 debhelper (0.99) unstable; urgency=low
 
   * !!!! WARNING: Debhelper (specifically dh_compress) is broken with
index 79dc08925c64727474d9f3439335ea12d40f11ba..c2aa9e028450ecc6d7929d9901d13a06777b77e3 100755 (executable)
@@ -13,18 +13,27 @@ for PACKAGE in $DH_DOPACKAGES; do
                error "debian/tmp does not exist"
        fi
 
-       # debian/files has a different purpose, so ignore it.
+       tomove=""
+
+        # debian/files has a different purpose, so ignore it.
        if [ "$files" -a "$files" != "debian/files" ]; then
-#              if [ "$TMP" = "debian/tmp" ]; then
-#                      error "I was asked to move some files from debian/tmp to debian/tmp."
-#              fi
+               tomove=`cat $files`
+       fi
+       
+       if [ \( "$PACKAGE" = "$DH_FIRSTPACKAGE" -o "$DH_PARAMS_ALL" \) \
+            -a "$*" ]; then
+               tomove="$* $tomove"
+       fi
 
+       if [ "$tomove" -a "$PACKAGE" = "$MAINPACKAGE" ]; then
+               error "I was asked to move files from debian/tmp to debian/tmp."
+       fi
+
+       if [ "$tomove" ]; then
                if [ ! -d "$TMP" ]; then
                        doit "install -d $TMP"
                fi
 
-               files=`pwd`/$files
-
                # Order the files. First all real files, then symlinks. 
                # Putting symlinks last is a nice thing to do for library 
                # packages and doesn't affect much of anything else.
@@ -34,10 +43,10 @@ for PACKAGE in $DH_DOPACKAGES; do
                # The filelist is used, so even very weird filenames can be
                # moved.
                doit "rm -f movelist"
-               for i in `(cd debian/tmp ; echo \`cat $files\`)`; do
+               for i in `(cd debian/tmp; echo $tomove)`; do
                        complex_doit "(cd debian/tmp ; find $i ! -type d -and ! -type l -print) >> movelist"
                done
-               for i in `(cd debian/tmp ; echo \`cat $files\`)`; do
+               for i in `(cd debian/tmp; echo $tomove)`; do
                        complex_doit "(cd debian/tmp ; find $i ! -type d -and -type l -print) >> movelist"
                done
                complex_doit "(cd debian/tmp;tar --create --remove-files --files-from=../../movelist --file -) | (cd $TMP;tar xpf -)"
index 4243758f1a56e5fa08df63a2e578fcbdb8ffeeb3..b36d3dd51d1926123a04239bad4f3f798a2f523a 100644 (file)
@@ -3,7 +3,7 @@
 dh_movefiles \- moves files out of debian/tmp into subpackages
 .SH SYNOPSIS
 .B dh_movefiles
-.I "[-v] [-a] [-i] [--no-act] [-ppackage] [-Ptmpdir]"
+.I "[-v] [-a] [-i] [--no-act] [-ppackage] [-Ptmpdir] [file ..]"
 .SH "DESCRIPTION"
 dh_movefiles is a debhelper program that is responsible for moving files out
 of debian/tmp and into other package build directories. This may be useful
@@ -13,7 +13,9 @@ you need to break that up into subpackages.
 Files named debian/package.files list the files to be moved, separated by
 whitespace. The filenames listed should be relative to debian/tmp/. You can
 also list directory names, and the whole directory will be moved. You can
-even use wildcards if you like.
+even use wildcards if you like. If you prefer, you can list the files to
+move on the command line. However, this will only work if the first package
+dh_movefiles is told to act on is a subpackage (ie, via -p).
 .P
 The files will be moved in a special order: first all normal files, then all
 symlinks. This is done becuase it tends to be a good thing to have symlinks
@@ -38,6 +40,12 @@ Move files for the package named "package".
 .TP
 .B \-Ptmpdir, \--tmpdir=tmpdir
 Use "tmpdir" for package build directory. 
+.TP
+.B file ..
+Lists files to move. The filenames listed should be relative to debian/tmp/.
+You can also list directory names, and the whole directory will be moved. You
+can even use wildcards if you like. It is an error to list files here unless
+you use -p, -i, or -a to tell dh_movefiles which subpackage to put them in.
 .SH NOTES
 The
 .B \-a