git-migration: tree_filter.sh (NEW) - add tree_filter.sh to use by git-filt...

draenog draenog at pld-linux.org
Mon Feb 14 01:39:56 CET 2011


Author: draenog                      Date: Mon Feb 14 00:39:56 2011 GMT
Module: git-migration                 Tag: HEAD
---- Log message:
- add tree_filter.sh to use by git-filter-branch

---- Files affected:
git-migration:
   tree_filter.sh (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: git-migration/tree_filter.sh
diff -u /dev/null git-migration/tree_filter.sh:1.1
--- /dev/null	Mon Feb 14 01:39:56 2011
+++ git-migration/tree_filter.sh	Mon Feb 14 01:39:51 2011
@@ -0,0 +1,8 @@
+first_line='# $Revision$, $Date$'
+log_line='%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)'
+
+find -name \*.spec |
+while read spec; do
+    sed -ie "/^${first_line}$/d
+             /^${log_line}$/,\$d" $spec
+done
================================================================


More information about the pld-cvs-commit mailing list