This file as it stood at my last edit of it back in 2010.
This commit is contained in:
parent
7743682496
commit
a1e7bba51f
1 changed files with 2 additions and 2 deletions
|
@ -1,9 +1,9 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
for i in `ls -r1t $1.~*~`; do
|
for i in `ls -r1t $1.~*~`; do
|
||||||
date=`stat -c '%y' $i`
|
date=`stat -c '%y' $i | perl -pe 's/(\.\d+) / /'`
|
||||||
logdate=`stat -c '%y' $i|perl -pe 's/^(\S+)\s+.*$/$1/;'`
|
logdate=`stat -c '%y' $i|perl -pe 's/^(\S+)\s+.*$/$1/;'`
|
||||||
echo $date $i
|
echo $logdate $date $i
|
||||||
cp -pa $i $2
|
cp -pa $i $2
|
||||||
export GIT_AUTHOR_DATE="$date"
|
export GIT_AUTHOR_DATE="$date"
|
||||||
git commit -m "Brought in file from ~ backup files, as it was on $logdate" $2
|
git commit -m "Brought in file from ~ backup files, as it was on $logdate" $2
|
||||||
|
|
Loading…
Add table
Reference in a new issue