Last change
on this file since 28632 was 17494, checked in by anna, 16 years ago |
Updated tutorials and associated files.
|
-
Property svn:executable
set to
*
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
508 bytes
|
Rev | Line | |
---|
[13632] | 1 | #!/bin/sh
|
---|
| 2 |
|
---|
[17494] | 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.