"Fossies" - the Fresh Open Source Software archive 
#!/bin/sh
echo ""
echo " /*****************************************************************/"
echo " /** I N S T A L L **/"
echo " /** **/"
echo " /** This program installs the graphics software DISLIN. The va- **/"
echo " /** riable DISLIN must be set to the directory where DISLIN **/"
echo " /** should be installed: **/"
echo " /** For example: DISLIN=/usr/local/dislin **/"
echo " /** export DISLIN **/"
echo " /** **/"
echo " /** Date : 15.01.2013 **/"
echo " /** Version: 10.3 / Linux, i586 **/"
echo " /*****************************************************************/"
echo ""
if test ${DISLIN} ; then
echo "Installation of DISLIN in directory "${DISLIN}
echo ""
else
echo "The environment DISLIN is not defined!"
exit 0
fi
if test ! -d ${DISLIN}; then
mkdir ${DISLIN}
echo "The directory "${DISLIN}" is created!"
fi
chmod u=rwx,g=rx,o=rx ${DISLIN}
if test ! -d ${DISLIN}/map; then
mkdir ${DISLIN}/map
echo "The directory "${DISLIN}"/map is created!"
fi
chmod u=rwx,g=rx,o=rx ${DISLIN}/map
if test ! -d $DISLIN/ifc; then
mkdir $DISLIN/ifc
echo "The directory "${DISLIN}"/ifc is created!"
fi
chmod u=rwx,g=rx,o=rx ${DISLIN}/ifc
if test ! -d $DISLIN/ifc/real64; then
mkdir $DISLIN/ifc/real64
echo "The directory "${DISLIN}"/ifc/real64 is created!"
fi
chmod u=rwx,g=rx,o=rx ${DISLIN}/ifc/real64
if test ! -d $DISLIN/af; then
mkdir $DISLIN/af
echo "The directory "${DISLIN}"/af is created!"
fi
chmod u=rwx,g=rx,o=rx ${DISLIN}/af
if test ! -d $DISLIN/af/real64; then
mkdir $DISLIN/af/real64
echo "The directory "${DISLIN}"/af/real64 is created!"
fi
chmod u=rwx,g=rx,o=rx ${DISLIN}/af/real64
if test ! -d $DISLIN/sun; then
mkdir $DISLIN/sun
echo "The directory "${DISLIN}"/sun is created!"
fi
chmod u=rwx,g=rx,o=rx ${DISLIN}/sun
if test ! -d $DISLIN/sun/real64; then
mkdir $DISLIN/sun/real64
echo "The directory "${DISLIN}"/sun/real64 is created!"
fi
chmod u=rwx,g=rx,o=rx ${DISLIN}/sun/real64
if test ! -d $DISLIN/pgf; then
mkdir $DISLIN/pgf
echo "The directory "${DISLIN}"/pgf is created!"
fi
chmod u=rwx,g=rx,o=rx ${DISLIN}/pgf
if test ! -d $DISLIN/pgf/real64; then
mkdir $DISLIN/pgf/real64
echo "The directory "${DISLIN}"/pgf/real64 is created!"
fi
chmod u=rwx,g=rx,o=rx ${DISLIN}/pgf/real64
if test ! -d ${DISLIN}/man; then
mkdir ${DISLIN}/man
echo "The directory "${DISLIN}"/man is created!"
fi
chmod u=rwx,g=rx,o=rx ${DISLIN}/man
if test ! -d ${DISLIN}/hlp; then
mkdir ${DISLIN}/hlp
echo "The directory "${DISLIN}"/hlp is created!"
fi
chmod u=rwx,g=rx,o=rx ${DISLIN}/hlp
if test ! -d ${DISLIN}/fonts; then
mkdir ${DISLIN}/fonts
echo "The directory "${DISLIN}"/fonts is created!"
fi
chmod u=rwx,g=rx,o=rx ${DISLIN}/fonts
if test ! -d ${DISLIN}/bin; then
mkdir ${DISLIN}/bin
echo "The directory "${DISLIN}"/bin is created!"
fi
chmod u=rwx,g=rx,o=rx ${DISLIN}/bin
if test ! -d ${DISLIN}/real64; then
mkdir ${DISLIN}/real64
echo "The directory "${DISLIN}"/real64 is created!"
fi
chmod u=rwx,g=rx,o=rx ${DISLIN}/bin
if test ! -d ${DISLIN}/lib; then
mkdir ${DISLIN}/lib
echo "The directory "${DISLIN}"/lib is created!"
fi
chmod u=rwx,g=rx,o=rx ${DISLIN}/lib
if test ! -d ${DISLIN}/examples; then
mkdir ${DISLIN}/examples
echo "The directory "${DISLIN}"/examples is created!"
fi
chmod u=rwx,g=rx,o=rx ${DISLIN}/examples
if test ! -d ${DISLIN}/examples/ch; then
mkdir ${DISLIN}/examples/ch
echo "The directory "${DISLIN}"/examples/ch is created!"
fi
chmod u=rwx,g=rx,o=rx ${DISLIN}/examples/ch
if test ! -d ${DISLIN}/chf; then
mkdir ${DISLIN}/chf
echo "The directory "${DISLIN}"/chf is created!"
fi
chmod u=rwx,g=rx,o=rx ${DISLIN}/chf
if test ! -d ${DISLIN}/g95; then
mkdir ${DISLIN}/g95
echo "The directory "${DISLIN}"/g95 is created!"
fi
chmod u=rwx,g=rx,o=rx ${DISLIN}/g95
if test ! -d ${DISLIN}/g95/real64; then
mkdir ${DISLIN}/g95/real64
echo "The directory "${DISLIN}"/g95/real64 is created!"
fi
chmod u=rwx,g=rx,o=rx ${DISLIN}/g95/real64
if test ! -d ${DISLIN}/gf; then
mkdir ${DISLIN}/gf
echo "The directory "${DISLIN}"/gf is created!"
fi
chmod u=rwx,g=rx,o=rx ${DISLIN}/gf
if test ! -d ${DISLIN}/gf/real64; then
mkdir ${DISLIN}/gf/real64
echo "The directory "${DISLIN}"/gf/real64 is created!"
fi
chmod u=rwx,g=rx,o=rx ${DISLIN}/gf/real64
if test ! -d $DISLIN/gcldir; then
mkdir $DISLIN/gcldir
echo "The directory "${DISLIN}"/gcldir is created!"
fi
chmod u=rwx,g=rx,o=rx ${DISLIN}/gcldir
if test ! -d ${DISLIN}/python; then
mkdir ${DISLIN}/python
echo "The directory "${DISLIN}"/python is created!"
fi
chmod u=rwx,g=rx,o=rx ${DISLIN}/python
if test ! -d ${DISLIN}/python3; then
mkdir ${DISLIN}/python3
echo "The directory "${DISLIN}"/python3 is created!"
fi
chmod u=rwx,g=rx,o=rx ${DISLIN}/python3
if test ! -d ${DISLIN}/perl; then
mkdir ${DISLIN}/perl
echo "The directory "${DISLIN}"/perl is created!"
fi
chmod u=rwx,g=rx,o=rx ${DISLIN}/perl
if test ! -d ${DISLIN}/java; then
mkdir ${DISLIN}/java
echo "The directory "${DISLIN}"/java is created!"
fi
chmod u=rwx,g=rx,o=rx ${DISLIN}/java
if test ! -d ${DISLIN}/ruby; then
mkdir ${DISLIN}/ruby
echo "The directory "${DISLIN}"/ruby is created!"
fi
chmod u=rwx,g=rx,o=rx ${DISLIN}/ruby
if test ! -d ${DISLIN}/tcl; then
mkdir ${DISLIN}/tcl
echo "The directory "${DISLIN}"/tcl is created!"
fi
chmod u=rwx,g=rx,o=rx ${DISLIN}/tcl
cp -p man/*.txt ${DISLIN}/man
echo "man/* is copied to "${DISLIN}"/man"
cp -p gcldir/man/* ${DISLIN}/man
echo "gcldir/man/* is copied to "${DISLIN}"/man"
chmod u=rw,g=r,o=r ${DISLIN}/man/*
cp -p hlp/*.txt ${DISLIN}/hlp
echo "hlp/* is copied to "${DISLIN}"/hlp"
cp -p gcldir/hlp/* ${DISLIN}/hlp
echo "gcldir/hlp/* is copied to "${DISLIN}"/hlp"
chmod u=rw,g=r,o=r ${DISLIN}/hlp/*
cp -p fonts/*.bdf ${DISLIN}/fonts
echo "fonts/* is copied to "${DISLIN}"/fonts"
chmod u=rw,g=r,o=r ${DISLIN}/fonts/*
cp -p gcldir/*.gcl ${DISLIN}/gcldir
cp -p gcldir/*.ini ${DISLIN}/gcldir
chmod u=rw,g=r,o=r ${DISLIN}/gcldir/*
echo "gcldir/*.gcl is copied to "${DISLIN}"/gcldir"
cp -p python/* ${DISLIN}/python
echo "python/* is copied to "${DISLIN}"/python"
chmod u=rwx,g=rx,o=rx ${DISLIN}/python/*.py
cp -p python3/* ${DISLIN}/python3
echo "python3/* is copied to "${DISLIN}"/python3"
chmod u=rwx,g=rx,o=rx ${DISLIN}/python3/*.py
cp -p perl/* ${DISLIN}/perl
echo "perl/* is copied to "${DISLIN}"/perl"
chmod u=rwx,g=rx,o=rx ${DISLIN}/perl/*
chmod u=rw,g=r,o=r ${DISLIN}/perl/Dislin.pm
cp -p ruby/* ${DISLIN}/ruby
echo "ruby/* is copied to "${DISLIN}"/ruby"
chmod u=rwx,g=rx,o=rx ${DISLIN}/ruby/*.rb
cp -p tcl/* ${DISLIN}/tcl
echo "tcl/* is copied to "${DISLIN}"/tcl"
chmod u=rwx,g=rx,o=rx ${DISLIN}/tcl/*.tcl
cp -p java/* ${DISLIN}/java
echo "java/* is copied to "${DISLIN}"/java"
chmod u=rwx,g=r,o=r ${DISLIN}/java/*
cp -p chf/*.chf ${DISLIN}/chf
echo "chf/* is copied to "${DISLIN}"/chf"
chmod u=rw,g=r,o=r ${DISLIN}/chf/*
cp -p ch/* ${DISLIN}/examples/ch
echo "ch/* is copied to "${DISLIN}"/examples/ch"
chmod u=rw,g=r,o=r ${DISLIN}/examples/ch/*
cp -p linux_i586/bin/* ${DISLIN}/bin
echo "linux_i586/bin is copied to "${DISLIN}/"bin"
chmod u=rwx,g=x,o=x ${DISLIN}/bin/*
chmod u=rwx,g=rx,o=rx ${DISLIN}/bin/disdrv
chmod u=rwx,g=rx,o=rx ${DISLIN}/bin/dlink
chmod u=rwx,g=rx,o=rx ${DISLIN}/bin/clink
chmod u=rwx,g=rx,o=rx ${DISLIN}/bin/cpplink
chmod u=rwx,g=rx,o=rx ${DISLIN}/bin/f2clink
chmod u=rwx,g=rx,o=rx ${DISLIN}/bin/g95link
chmod u=rwx,g=rx,o=rx ${DISLIN}/bin/gf77link
chmod u=rwx,g=rx,o=rx ${DISLIN}/bin/gf95link
chmod u=rwx,g=rx,o=rx ${DISLIN}/bin/iclink
chmod u=rwx,g=rx,o=rx ${DISLIN}/bin/if77link
chmod u=rwx,g=rx,o=rx ${DISLIN}/bin/if90link
chmod u=rwx,g=rx,o=rx ${DISLIN}/bin/af77link
chmod u=rwx,g=rx,o=rx ${DISLIN}/bin/af90link
chmod u=rwx,g=rx,o=rx ${DISLIN}/bin/pgf77link
chmod u=rwx,g=rx,o=rx ${DISLIN}/bin/pgf90link
cp -p ${DISLIN}/bin/dlink ${DISLIN}/bin/g77link
chmod u=rwx,g=rx,o=rx ${DISLIN}/bin/g77link
cp -p ${DISLIN}/bin/gf95link ${DISLIN}/bin/f90link
chmod u=rwx,g=rx,o=rx ${DISLIN}/bin/f90link
cp -p linux_i586/g95/dislin.mod ${DISLIN}/g95
cp -p linux_i586/g95/dislin_d.mod ${DISLIN}/g95/real64/dislin.mod
chmod u=rw,g=r,o=r ${DISLIN}/g95/dislin.mod
chmod u=rw,g=r,o=r ${DISLIN}/g95/real64/dislin.mod
cp -p linux_i586/gf/dislin.mod ${DISLIN}/gf
cp -p linux_i586/gf/dislin_d.mod ${DISLIN}/gf/real64/dislin.mod
chmod u=rw,g=r,o=r ${DISLIN}/gf/dislin.mod
chmod u=rw,g=r,o=r ${DISLIN}/gf/real64/dislin.mod
cp -p linux_i586/ifc/dislin.mod ${DISLIN}/ifc
cp -p linux_i586/ifc/dislin_d.mod ${DISLIN}/ifc/real64/dislin.mod
chmod u=rw,g=r,o=r ${DISLIN}/ifc/dislin.mod
chmod u=rw,g=r,o=r ${DISLIN}/ifc/real64/dislin.mod
cp -p linux_i586/af/DISLIN.mod ${DISLIN}/af
cp -p linux_i586/af/DISLIN_d.mod ${DISLIN}/af/real64/DISLIN.mod
chmod u=rw,g=r,o=r ${DISLIN}/af/DISLIN.mod
chmod u=rw,g=r,o=r ${DISLIN}/af/real64/DISLIN.mod
cp -p linux_i586/sun/dislin.mod ${DISLIN}/sun
cp -p linux_i586/sun/dislin_d.mod ${DISLIN}/sun/real64/dislin.mod
chmod u=rw,g=r,o=r ${DISLIN}/sun/dislin.mod
chmod u=rw,g=r,o=r ${DISLIN}/sun/real64/dislin.mod
cp -p linux_i586/pgf/dislin.mod ${DISLIN}/pgf
cp -p linux_i586/pgf/dislin_d.mod ${DISLIN}/pgf/real64/dislin.mod
chmod u=rw,g=r,o=r ${DISLIN}/pgf/dislin.mod
chmod u=rw,g=r,o=r ${DISLIN}/pgf/real64/dislin.mod
cp -p linux_i586/dislin.f90 ${DISLIN}/g95
cp -p linux_i586/dislin_d.f90 ${DISLIN}/g95/real64/dislin.f90
cp -p linux_i586/dislin.f90 ${DISLIN}/gf
cp -p linux_i586/dislin_d.f90 ${DISLIN}/gf/real64/dislin.f90
cp -p linux_i586/dislin.f90 ${DISLIN}/ifc
cp -p linux_i586/dislin_d.f90 ${DISLIN}/ifc/real64/dislin.f90
cp -p linux_i586/dislin.f90 ${DISLIN}/af
cp -p linux_i586/dislin_d.f90 ${DISLIN}/af/real64/dislin.f90
cp -p linux_i586/dislin.f90 ${DISLIN}/sun
cp -p linux_i586/dislin_d.f90 ${DISLIN}/sun/real64/dislin.f90
cp -p linux_i586/dislin.f90 ${DISLIN}/pgf
cp -p linux_i586/dislin_d.f90 ${DISLIN}/pgf/real64/dislin.f90
cp -p linux_i586/lib/* ${DISLIN}/lib
echo "linux_i586/lib is copied to "${DISLIN}/"lib"
chmod u=rw,g=r,o=r ${DISLIN}/lib/*.a
chmod u=rwx,g=rx,o=rx ${DISLIN}/lib/*.so
cp -p linux_i586/perl/* ${DISLIN}/perl
chmod u=rwx,g=rx,o=rx ${DISLIN}/perl/*.so
cp -p linux_i586/python/* ${DISLIN}/python
chmod u=rwx,g=rx,o=rx ${DISLIN}/python/*.so
cp -p linux_i586/python3/* ${DISLIN}/python3
chmod u=rwx,g=rx,o=rx ${DISLIN}/python3/*.so
cp -p linux_i586/java/* ${DISLIN}/java
chmod u=rwx,g=rx,o=rx ${DISLIN}/java/*.so
cp -p linux_i586/ruby/* ${DISLIN}/ruby
chmod u=rwx,g=rx,o=rx ${DISLIN}/ruby/*.so
cp -p linux_i586/tcl/* ${DISLIN}/tcl
chmod u=rwx,g=rx,o=rx ${DISLIN}/tcl/*.so
cp -p linux_i586/ch/dislin.dl ${DISLIN}
chmod u=rwx,g=rx,o=rx ${DISLIN}/dislin.dl
if test ! -f ${DISLIN}/device.dat ; then
cp -p device.dat ${DISLIN}
chmod u=rw,g=r,o=r ${DISLIN}/device.dat
echo "device.dat is copied to "${DISLIN}
fi
if test ! -f ${DISLIN}/dislin.log ; then
cp -p dislin.log ${DISLIN}
chmod u=rw,g=rw,o=rw ${DISLIN}/dislin.log
echo "dislin.log is copied to "${DISLIN}
fi
cp -p map/* ${DISLIN}/map
chmod u=rw,g=r,o=r ${DISLIN}/map/*
echo "map/* is copied to "${DISLIN}"/map"
cp -p README ${DISLIN}
chmod u=rw ${DISLIN}/README
echo "README is copied to "${DISLIN}
cp -p DISLIN ${DISLIN}
chmod u=rw,g=r,o=r ${DISLIN}/DISLIN
echo "DISLIN is copied to "${DISLIN}
cp -p license.txt ${DISLIN}
chmod u=rw,g=r,o=r ${DISLIN}/license.txt
echo "license.txt is copied to "${DISLIN}
cp -p examples/dislin.h ${DISLIN}
cp -p examples/dislin_d.h ${DISLIN}/real64/dislin.h
cp -p examples/discpp.h ${DISLIN}
cp -p examples/exa_c.c ${DISLIN}/examples
cp -p examples/exa_cpp.cpp ${DISLIN}/examples
cp -p examples/exa_f77.f ${DISLIN}/examples
cp -p examples/map_c.c ${DISLIN}/examples
cp -p examples/map_cpp.cpp ${DISLIN}/examples
cp -p examples/map_f77.f ${DISLIN}/examples
cp -p examples/exa_f90.f90 ${DISLIN}/examples
cp -p examples/map_f90.f90 ${DISLIN}/examples
echo "examples/* is copied to "${DISLIN}"/examples"
chmod u=rw,g=r,o=r ${DISLIN}/examples/*
chmod u=rwx,g=rx,o=rx ${DISLIN}/examples/ch
chmod u=rw,g=r,o=r ${DISLIN}/dislin.h
chmod u=rw,g=r,o=r ${DISLIN}/real64/dislin.h
chmod u=rw,g=r,o=r ${DISLIN}/discpp.h
ln -s -f ${DISLIN}/lib/dislin-10.3.a ${DISLIN}/libdislin.a
ln -s -f ${DISLIN}/lib/dislin_d-10.3.a ${DISLIN}/libdislin_d.a
ln -s -f ${DISLIN}/lib/dislin-10.3.a ${DISLIN}/libdislnc.a
ln -s -f ${DISLIN}/lib/dislin_d-10.3.a ${DISLIN}/libdislnc_d.a
ln -s -f ${DISLIN}/lib/dislin-10.3.so ${DISLIN}/libdislin.so.10
ln -s -f ${DISLIN}/lib/dislin-10.3.so ${DISLIN}/libdislin.so.9
ln -s -f ${DISLIN}/libdislin.so.10 ${DISLIN}/libdislin.so
ln -s -f ${DISLIN}/lib/dislin-10.3.so ${DISLIN}/libdislnc.so.10
ln -s -f ${DISLIN}/lib/dislin-10.3.so ${DISLIN}/libdislnc.so.9
ln -s -f ${DISLIN}/libdislin.so.10 ${DISLIN}/libdislnc.so
ln -s -f ${DISLIN}/lib/discpp-10.3.so ${DISLIN}/libdiscpp.so.10
ln -s -f ${DISLIN}/libdiscpp.so.10 ${DISLIN}/libdiscpp.so
ln -s -f ${DISLIN}/lib/dislin_d-10.3.so ${DISLIN}/libdislin_d.so.10
ln -s -f ${DISLIN}/lib/dislin_d-10.3.so ${DISLIN}/libdislin_d.so.9
ln -s -f ${DISLIN}/libdislin_d.so.10 ${DISLIN}/libdislin_d.so
ln -s -f ${DISLIN}/lib/dislin_d-10.3.so ${DISLIN}/libdislnc_d.so.10
ln -s -f ${DISLIN}/lib/dislin_d-10.3.so ${DISLIN}/libdislnc_d.so.9
ln -s -f ${DISLIN}/libdislin_d.so.10 ${DISLIN}/libdislnc_d.so
ln -s -f ${DISLIN}/java/disjava-10.3.so ${DISLIN}/libdisjava.so.10
ln -s -f ${DISLIN}/java/disjava-10.3.so ${DISLIN}/libdisjava.so.9
ln -s -f ${DISLIN}/libdisjava.so.10 ${DISLIN}/libdisjava.so
echo "links were created in "${DISLIN}