#!/bin/sh # # # # linking the libranlib.a # +++++++++++++++++++++++ # cd ../lib # first check if the file libranlib.a is existing if [ -f libranlib.a ] ; then echo " libranlib.a already linked" else echo "- linking the libranlib " SYSTEM=`echo ${OSTYPE} | grep osf | wc | awk '{print $1}'` if [ $SYSTEM = 1 ]; then echo " --> SYSTEM = osf " ln -s libranlib.a.osf1 libranlib.a fi SYSTEM=`echo ${OSTYPE} | grep linux | wc | awk '{print $1}'` if [ $SYSTEM = 1 ]; then echo " --> SYSTEM = linux " ln -s libranlib.a.linux libranlib.a fi fi if [ -f libranlib.a ] ; then echo " libranlib.a sucessfully linked" else echo " ERROR: no symbolic link for libranlib.a " exit fi echo "" echo "" # # linking the reflectivity.dat # ++++++++++++++++++++++++++++ # cd ../Data # first check if the file is existing if [ -f reflectivity.dat ] ; then echo " reflectivity.dat already linked" else echo " linking the reflectivity.dat " ln -s reflectivity-90.dat reflectivity.dat fi if [ -f reflectivity.dat ] ; then echo " reflectivity.dat sucessfully linked" else echo " ERROR: no symoblic link for reflectivity.dat" exit fi echo "" echo "" # # instruction for compilation # +++++++++++++++++++++++++++ # echo " to compile the reflector use the following commands" echo "" echo " > make depend" echo " > make " echo "" echo " change the ->input<- card and run reflector with " echo "" echo " > reflector < input " echo "" echo ""