install_kdistribution_light1.1.1.bash (524B)
1 #!/bin/bash 2 FOLDER='kdistribution_light1.1.1' 3 ARCHIVE='kdistribution_light1.1.1.tgz' 4 5 LOCAL=$('pwd') 6 7 if [ -e $FOLDER ] 8 then 9 echo "Directory already exists:" 10 echo $FOLDER 11 echo "Please erase it and try again" 12 exit 0 13 else 14 tar -zxvf ${ARCHIVE} 15 cd $LOCAL/$FOLDER/data 16 mkdir hires_spectra 17 ln -s narrowbands_default.in narrowbands.in 18 cd $LOCAL 19 rm -f ${ARCHIVE} 20 rm -f install_kdistribution*.bash 21 fi 22 23 echo "" 24 echo "The archive was extracted in: ./"$FOLDER 25 echo "Use documentation file "Doc/manual.pdf" if needed" 26 27 exit 0