Merge branch 'master' of hrunkner.hjp.at:git/simple

This commit is contained in:
Peter J. Holzer 2017-02-17 13:21:19 +01:00
commit b58b1b1dc5
2 changed files with 15 additions and 3 deletions

View File

@ -1,3 +1,3 @@
#!/bin/sh #!/bin/sh
echo "\$(BINDIR)/%: %" echo "\$(BINDIR)/%: %"
echo -e "\tcp \$^ \$@" echo " cp \$^ \$@"

View File

@ -1,2 +1,14 @@
#!/bin/sh #!/usr/bin/perl
date '+%Y-%m-%dT%H:%M:%S' use v5.10;
use warnings;
use strict;
use Getopt::Long;
use POSIX qw(strftime);
use Pod::Usage;
my $mssafe;
GetOptions(
"mssafe" => \$mssafe
) or pod2usage(1);
my $fmt = $mssafe ? "%Y-%m-%dT%H-%M-%S" : "%Y-%m-%dT%H:%M:%S";
say strftime($fmt, localtime);