source: documentation/trunk/manuals/clean-all.sh@ 19583

Last change on this file since 19583 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
Line 
1#!/bin/sh
2
3top_dir=`pwd`
4output_dir=`pwd`/build
5
6echo -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."
7read cmd
8
9if [ $cmd = 'all' ]; then
10 rm -r $output_dir/
11 exit
12fi
13
14
15langs="en fr es ru"
16for 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
27done
Note: See TracBrowser for help on using the repository browser.