git-migration: tree_filter.sh - fix filtering
glen
glen at pld-linux.org
Mon Feb 14 07:46:10 CET 2011
Author: glen Date: Mon Feb 14 06:46:10 2011 GMT
Module: git-migration Tag: HEAD
---- Log message:
- fix filtering
---- Files affected:
git-migration:
tree_filter.sh (1.1 -> 1.2)
---- Diffs:
================================================================
Index: git-migration/tree_filter.sh
diff -u git-migration/tree_filter.sh:1.1 git-migration/tree_filter.sh:1.2
--- git-migration/tree_filter.sh:1.1 Mon Feb 14 01:39:51 2011
+++ git-migration/tree_filter.sh Mon Feb 14 07:46:05 2011
@@ -1,8 +1,10 @@
-first_line='# $Revision$, $Date$'
+first_line='# \$Revision\$, \$Date\$'
log_line='%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)'
-find -name \*.spec |
+find -name '*.spec' |
while read spec; do
- sed -ie "/^${first_line}$/d
- /^${log_line}$/,\$d" $spec
+ sed -i -e "
+ /^${first_line}$/d
+ /^${log_line}$/,\$d
+ " $spec
done
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/git-migration/tree_filter.sh?r1=1.1&r2=1.2&f=u
More information about the pld-cvs-commit
mailing list