1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
|
#! /bin/sh
umask 0
PATH=/usr/bin:/bin:$PATH
quit() {
echo "Exiting..."
exit 1
}
R64=`cat -s .r64`
INSTALL_DIR=`cat -s .emos`
echo
echo "*******************************************************************"
echo "If you choose default directories for Tables or libemos$R64.a "
echo "you must have root permission to do that."
echo "*******************************************************************"
echo
echo "Installing Tables, land-sea mask and EMOS library into $INSTALL_DIR ... "
trap "" 2 3
for i in `cat .list/gribtables` ; do
tar cf - $i | (cd $INSTALL_DIR; tar xf - )
done
for i in `cat .list/bufrtables` ; do
tar cf - $i | (cd $INSTALL_DIR; tar xf - )
done
for i in `cat .list/crextables` ; do
tar cf - $i | (cd $INSTALL_DIR; tar xf - )
done
for i in `cat .list/land_sea_mask` ; do
tar cf - $i | (cd $INSTALL_DIR; tar xf - )
done
for i in `cat .list/gribtemplates` ; do
tar cf - $i | (cd $INSTALL_DIR; tar xf - )
done
cp libemos$R64.a $INSTALL_DIR/.
make -C pkgconfig prefix=$INSTALL_DIR pkgconfigdir=$INSTALL_DIR/pkgconfig
echo
echo "*******************************************************************"
echo
echo "Installation complete!"
echo
echo "*******************************************************************"
echo
echo " You can see examples for: decoding GRIB, BUFR, CREX products and"
echo "interpolation in example directory. There is appropriate Makefile for"
echo "each of them. You should invoke 'make' and start executable version"
echo "of programs e.g. agrdemo.F :"
echo
echo "./agrdemo -i data/latlon.grib"
echo
echo "*******************************************************************"
exit 0
|