initial commit [141.14.140.180,mike]
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
#!/usr/bin/perl
|
||||
use Getopt::Std;getopts('x');
|
||||
|
||||
use Sys::Hostname qw(hostname);use Socket;
|
||||
my($ip) = inet_ntoa( (gethostbyname(hostname()))[4] );
|
||||
my($user)=getpwuid( $< );
|
||||
|
||||
if ($opt_x) {
|
||||
$comment="[$ip,$user] " . join(' ',@ARGV);
|
||||
} else {
|
||||
$comment=join(' ',@ARGV);
|
||||
}
|
||||
|
||||
$comment='-' if ($comment=~/^\s*$/);
|
||||
$comment=~s/\s*$//;
|
||||
|
||||
system("git add -v .");
|
||||
system("git commit -m '$comment'");
|
||||
system("git push");
|
||||
|
||||
Reference in New Issue
Block a user