From 1137a2e7791cf9762c2783fa78606db1a1694ef3 Mon Sep 17 00:00:00 2001 From: "Bradley M. Kuhn" Date: Sat, 8 Aug 2009 19:18:31 -0400 Subject: [PATCH] Initial version of this file as I wrote it back in 2009. --- get-emacs-backup-files-into-git.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 get-emacs-backup-files-into-git.sh 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