diff --git a/get-emacs-backup-files-into-git.sh b/get-emacs-backup-files-into-git.sh new file mode 100755 index 0000000..5a897b9 --- /dev/null +++ b/get-emacs-backup-files-into-git.sh @@ -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