aboutsummaryrefslogtreecommitdiffstats
path: root/now.pl
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-05-29 15:11:38 -0700
committerH. Peter Anvin <hpa@zytor.com>2008-05-29 15:11:38 -0700
commitb536209dfb7bd50c37061735fe10d2c19a97d26d (patch)
tree9d8ca6882fc5d9721fb0efea1abfd6dc09886814 /now.pl
parent3ec40a0119587f63411475c76c69f9db24c7598e (diff)
downloadsyslinux-elf-b536209dfb7bd50c37061735fe10d2c19a97d26d.tar.gz
syslinux-elf-b536209dfb7bd50c37061735fe10d2c19a97d26d.tar.xz
syslinux-elf-b536209dfb7bd50c37061735fe10d2c19a97d26d.zip
Move files out of root into core, dos, and utils
Move source files out of the root directory; the root is a mess and has become virtually unmaintainable. The Syslinux core now lives in core/; the Linux and generic utilities has moved into utils/, and copybs.com has moved into dos/; it had to go somewhere, and it seemed as good a place as any.
Diffstat (limited to 'now.pl')
-rw-r--r--now.pl21
1 files changed, 0 insertions, 21 deletions
diff --git a/now.pl b/now.pl
deleted file mode 100644
index a3b5a798..00000000
--- a/now.pl
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/usr/bin/perl
-#
-# Print the time (possibly the mtime of a file) as a hexadecimal integer
-# If more than one file, print the mtime of the *newest* file.
-#
-
-undef $now;
-
-foreach $file ( @ARGV ) {
- ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,$atime,$mtime,
- $ctime,$blksize,$blocks) = stat($file);
- if ( !defined($now) || $now < $mtime ) {
- $now = $mtime;
- }
-}
-
-if ( !defined($now) ) {
- $now = time;
-}
-
-printf "0x%08x\n", $now;