source:
main/tags/2.81rc2/documentation/manuals/clean-all.sh@
24029
Last change on this file since 24029 was 17494, checked in by , 16 years ago | |
---|---|
|
|
File size: 508 bytes |
Line | |
---|---|
1 | #!/bin/sh |
2 | |
3 | top_dir=`pwd` |
4 | output_dir=`pwd`/build |
5 | |
6 | echo -e "what do you want to clean? \n type 'pdf' for all pdf files\n 'html' for all html files\n 'all' for all the generated files." |
7 | read cmd |
8 | |
9 | if [ $cmd = 'all' ]; then |
10 | rm -r $output_dir/ |
11 | exit |
12 | fi |
13 | |
14 | |
15 | langs="en fr es ru" |
16 | for l in $langs; do |
17 | cd $output_dir/$l |
18 | if [ $cmd = 'html' ]; then |
19 | rm -r html/ |
20 | echo "removed all the generated html files" |
21 | fi |
22 | if [ $cmd = 'pdf' ]; then |
23 | rm -r pdf/ |
24 | echo "removed all the generated pdf files" |
25 | fi |
26 | cd $top_dir |
27 | done |
Note:
See TracBrowser
for help on using the repository browser.