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
================================================================
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit