Changeset 17494 for documentation/trunk/manuals/clean-all.sh
- Timestamp:
- 2008-10-08T13:59:48+13:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
documentation/trunk/manuals/clean-all.sh
r13647 r17494 1 1 #!/bin/sh 2 2 3 echo "clean all gennerated files" 4 rm -r build/ 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 TracChangeset
for help on using the changeset viewer.