Initial version of this file as I wrote it back in 2009.
This commit is contained in:
parent
5ae8c190a3
commit
1137a2e779
1 changed files with 8 additions and 0 deletions
8
get-emacs-backup-files-into-git.sh
Executable file
8
get-emacs-backup-files-into-git.sh
Executable file
|
@ -0,0 +1,8 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
for i in `ls -r1t $1.~*~ $1`; do
|
||||||
|
date=`stat -c '%y' $i|perl -pe 's/^(\S+)\s+.*$/$1/;'`
|
||||||
|
echo $date $i
|
||||||
|
cp -pa $i $2
|
||||||
|
svn commit -m " * file as it stood on $date" $2
|
||||||
|
done
|
Loading…
Add table
Reference in a new issue