home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 1: Amiga
/
FrozenFish-Apr94.iso
/
bbs
/
gnu
/
gzip-1.2.4.tar.gz
/
gzip-1.2.4.tar
/
gzip-1.2.4
/
sample
/
ztouch
< prev
Wrap
Text File
|
1993-05-27
|
384b
|
16 lines
#! /usr/local/bin/perl
# Set the time stamp of a gzip'ed file from that stored in the file.
# usage: ztouch files...
foreach $file (@ARGV) {
open (FILE, $file);
read (FILE, $_, 8);
($magic, $method, $flags, $time) = unpack ("A2C2V", $_);
if ($magic eq "\037\213") {
utime ($time, $time, $file);
}
else {
warn "$file is not compressed with gzip!\n";
}
}