diff options
author | joey <joey> | 1999-08-17 05:09:26 +0000 |
---|---|---|
committer | joey <joey> | 1999-08-17 05:09:26 +0000 |
commit | 36411bfcb72fc17c6aa0f3b11cdd04e52828db98 (patch) | |
tree | 7ed886887f72252b387da7667a2464d7164f045c /dh_compress | |
parent | ebf6b046d1165c4ac3897545aa8e46c05a563658 (diff) | |
download | debhelper-36411bfcb72fc17c6aa0f3b11cdd04e52828db98.tar.gz |
r169: Initial Import
Diffstat (limited to 'dh_compress')
-rwxr-xr-x | dh_compress | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/dh_compress b/dh_compress index ffca30af..673f9102 100755 --- a/dh_compress +++ b/dh_compress @@ -15,6 +15,7 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) { # Run the file name gathering commands from within the directory # structure that will be effected. $olddir=getcwd(); + verbose_print("cd $TMP"); chdir($TMP) || error("Can't cd to $TMP: $!"); # Figure out what files to compress. @@ -58,6 +59,7 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) { # we can preserve the hard link across the compression and save # space in the end. my @f=(); + my %hardlinks={}; foreach (@files) { ($dev, $inode, undef, $nlink)=stat($_); if ($nlink > 1) { @@ -88,6 +90,7 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) { doit("ln","$hardlinks{$_}.gz","$_.gz"); } + verbose_print("cd $olddir"); chdir($olddir); # Fix up symlinks that were pointing to the uncompressed files. |