File: findfiles

package info (click to toggle)
kde-i18n 4%3A2.2.2-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 341,220 kB
  • ctags: 327
  • sloc: sh: 10,878; perl: 2,910; cpp: 1,319; makefile: 1,016; python: 258
file content (35 lines) | stat: -rw-r--r-- 1,242 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#! /usr/local/bin/bash

if test -z "$1"; then
  echo "call: $0 <filename>"
  exit
fi

filelist=$1

ml="kdeadmin kdebase kdegames kdegraphics kdelibs kdemultimedia kdenetwork kdenonbeta kdesdk kdesupport kdetoys kdeutils koffice kde-i18n kdepim kdeaddons kdeartwork"

for dir in $ml; do 
  if test -d $dir; then
    MODULES="$MODULES $dir"
  fi
done
find $MODULES -name ".directory" -print > $filelist
find $MODULES -name "*.kdelnk" -print >> $filelist
find $MODULES -name "*.desktop" -print >> $filelist
find $MODULES -name "*.kimap" -print >> $filelist
find $MODULES -name "*.themerc" -print >> $filelist
find $MODULES -name "*.kcsrc" -print >> $filelist
find kdebase/konqueror -name "directory.*" -print >> $filelist
find kdebase/kdesktop -name "directory.*" -print >> $filelist 
find kdebase/drkonqi -name "*rc" -print >> $filelist
find $MODULES -name "eventsrc" -print >> $filelist
find kdelibs/kimgio -name *.kimgio -print >> $filelist
find kdemultimedia/noatun -name *.plugin -print >> $filelist
find kdetoys/amor/data -name *rc -print >> $filelist
find kdelibs/kdeprint -name *.print -print >> $filelist
find kdebase -name *.kksrc -print >> $filelist

sortedfile=`tempfile`
sort -u $filelist > $sortedfile && mv $sortedfile $filelist