/usr/lib/noweb/nwmtime is in noweb 2.11b-7.1ubuntu1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | #!/bin/sh
#
# nwmtime -- emit defn of modification time of first file
#
eval 'exec perl -S $0 ${1+"$@"}'
if $running_under_some_shell;
$first = 1;
while(<>) {
print;
if ($first && /\@file\s*(\S+)/) {
$mtime_file = $1;
$first = 0;
}
}
if (!$first) {
my $filename = $mtime_file;
my $mtime;
# localtime if you really want local time...
$mtime = gmtime((stat $filename)[9]);
print <<EOF;
\@begin code 000
\@defn modification time of first \@file
\@nl
\@text $mtime
\@nl
\@end code 000
EOF
}
|