[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kde-i18n
From: Stephan Kulow <coolo () kde ! org>
Date: 2005-04-12 15:55:19
Message-ID: 20050412155519.6EA6A633 () office ! kde ! org
[Download RAW message or body]
CVS commit by coolo:
SVN is delayed
M +30 -44 findfiles 1.50
--- kde-i18n/findfiles #1.49:1.50
@@ -15,52 +15,38 @@
: > $filelist
-for mod in $ml; do
- if test -x ../$mod; then
- dir=../$mod
- elif test -x ../../$mod; then
- dir=../../$mod
- else
- continue
- fi
- subfile="$filelist"_$mod
- rm -fv $subfile
- find $dir/ -name "*.directory" -print >> $filelist
- find $dir/ -name "*.kdelnk" -print >> $filelist
- find $dir/ -name "*.desktop" -print >> $filelist
- find $dir/ -name "*.kimap" -print >> $filelist
- find $dir/ -name "*.themerc" -print >> $filelist
- find $dir/ -name "*.kcsrc" -print >> $filelist
- find $dir/ -name "*.setdlg" -print >> $filelist
- find $dir/ -name "index.theme" -print >> $filelist
- find $dir/ -name "eventsrc" -print >> $filelist
- find $dir/ -name "*.protocol" -print >> $filelist
+for dir in $ml; do
+ if test -x $dir; then
+ subfile="$filelist"_$dir
+ rm -f $subfile
+ find $dir/ -name "*.directory" -print >> $filelist
+ find $dir/ -name "*.kdelnk" -print >> $filelist
+ find $dir/ -name "*.desktop" -print >> $filelist
+ find $dir/ -name "*.kimap" -print >> $filelist
+ find $dir/ -name "*.themerc" -print >> $filelist
+ find $dir/ -name "*.kcsrc" -print >> $filelist
+ find $dir/ -name "*.setdlg" -print >> $filelist
+ find $dir/ -name "index.theme" -print >> $filelist
+ find $dir/ -name "eventsrc" -print >> $filelist
+ find $dir/ -name "*.protocol" -print >> $filelist
+fi
done
-find ../kdebase/konqueror -name "directory.*" -print >> $filelist
-find ../kdebase/kdesktop -name "directory.*" -print >> $filelist
-find ../kdebase/drkonqi -name "*rc" -print >> $filelist
-find ../kdelibs/kimgio -name *.kimgio -print >> $filelist
-find ../kdemultimedia/noatun -name *.plugin -print >> $filelist
-find ../kdeaddons/noatun-plugins -name *.plugin -print >> $filelist
-cat ../kdegames/kolf/courses.list >> $filelist
-find ../kdetoys/amor/data -name *rc -print >> $filelist
-find ../kdelibs/kdeprint -name *.print -print >> $filelist
-find ../kdebase -name *.kksrc -print >> $filelist
-find ../kdenetwork/kopete -name *.plugin -print >> $filelist
-find ../kdevelop -name *.kdevtemplate -print >> $filelist
+find kdebase/konqueror -name "directory.*" -print >> $filelist
+find kdebase/kdesktop -name "directory.*" -print >> $filelist
+find kdebase/drkonqi -name "*rc" -print >> $filelist
+find kdelibs/kimgio -name *.kimgio -print >> $filelist
+find kdemultimedia/noatun -name *.plugin -print >> $filelist
+find kdeaddons/noatun-plugins -name *.plugin -print >> $filelist
+cat kdegames/kolf/courses.list >> $filelist
+find kdetoys/amor/data -name *rc -print >> $filelist
+find kdelibs/kdeprint -name *.print -print >> $filelist
+find kdebase -name *.kksrc -print >> $filelist
+find kdenetwork/kopete -name *.plugin -print >> $filelist
+find kdevelop -name *.kdevtemplate -print >> $filelist
-sort -o $filelist -u $filelist
+sortedfile=`tempfile`
+sort -u $filelist > $sortedfile && mv $sortedfile $filelist
for file in `cat $filelist`; do
- case $file in
- ../../*)
- mod=`echo $file | sed -e "s,^../../\([^/]*\)/.*,\1,"`
- ;;
- ../*)
- mod=`echo $file | sed -e "s,^../\([^/]*\)/.*,\1,"`
- ;;
- *)
- echo "ERROR: $file"
- ;;
- esac
+ mod=`echo $file | sed -e "s,^\([^/]*\)/.*,\1,"`
subfile="$filelist"_$mod
echo $file >> $subfile
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic