Add archive_patch.sh
authorColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Mon, 24 Jan 2011 20:33:07 +0000 (12:33 -0800)
committerColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Mon, 24 Jan 2011 20:33:07 +0000 (12:33 -0800)
Signed-off-by: Colin McCabe <cmccabe@alumni.cmu.edu>

archive_patch.sh [new file with mode: 0755]

diff --git a/archive_patch.sh b/archive_patch.sh
new file mode 100755 (executable)
index 0000000..8c7a236
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+new_file_name=`date +'%Y-%m-%d'`_`basename $1`
+
+mv -i "${1}" "${new_file_name}"