Add Hold chapters option to the editor
[booki.git] / tools / repo-tidy.sh
blobf4d1f7cac867738a0913fed592beeb1186f09f13
1 #!/bin/bash
3 DIR=$1
5 usage() {
6 echo "USAGE: $0 DIRECTORY"
9 trap usage ERR
11 if ! [[ "$DIR" ]]; then
12 usage
13 exit 1
16 cd $DIR
18 # remove the twiki directory
19 for d in TWiki; do
20 rm -rf $d
21 done
23 #remove the twiki lease files.
24 find -name '*.lease' -print0 | xargs -0 rm -f
26 #remove magic twiki boilerplate
27 for f in WebAtom WebPreferences WebChanges WebRss \
28 WebCreateNewTopic WebSearchAdvanced WebHome WebSearch \
29 WebIndex WebStatistics WebLeftBar WebTopicList WebNotify \
30 WebTopicCreator WebTopicEditTemplate ; do
31 rm -f */$f.txt
32 rm -f */$f.txt,v
33 rm -f */${f}Talk.txt
34 rm -f */${f}Talk.txt,v
35 done