summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2002-12-05 20:56:10 +0000
committerJonas Smedegaard <dr@jones.dk>2002-12-05 20:56:10 +0000
commitc47658f3c48dcd569339da11066cee72c0cad2c0 (patch)
treea5768aaca95d60ded3adfbd4f08b01fa2fdea0a7
parentcbc9c0ef7653a1fad76713eeff469bec9fe2e8cd (diff)
Consistently use grep (instead of sometimes find -name).
-rwxr-xr-xlocalezmangle4
1 files changed, 2 insertions, 2 deletions
diff --git a/localezmangle b/localezmangle
index 34e7470..3ec9e20 100755
--- a/localezmangle
+++ b/localezmangle
@@ -3,7 +3,7 @@
# /usr/local/bin/localezmangle
# Copyright 2001-2002 Jonas Smedegaard <dr@jones.dk>
#
-# $Id: localezmangle,v 1.6 2002-12-03 02:05:13 jonas Exp $
+# $Id: localezmangle,v 1.7 2002-12-05 20:56:10 jonas Exp $
#
# Extract, rename and auto-mangle eZ Publish 2.2.x templates and languages
#
@@ -68,7 +68,7 @@ else
fi
# rename origname to targetname (ignored on multiple runs)
-for x in `cd $targetdir && find * -name "*$origname*"`; do
+for x in `cd $targetdir && find * | grep "$origname"`; do
mv $targetdir/$x $targetdir/`echo $x | sed "s $origname $targetname g"`
done