/usr/share/xcrysden/scripts/xcConfigure.sh is in xcrysden-data 1.5.60-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
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 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 | #!/bin/sh
InstallError () {
echo "
*************************************************
An ERROR occured during configuration of XCrySDen
Code: $1
Exit 1
"
exit 1
}
#
# Usage: xcConfigure [topdir]
#
if test "$#" -lt 1 ; then
if test "$0" = "./xcConfigure.sh"; then
XCRYSDEN_TOPDIR=`cd ..; pwd`
export XCRYSDEN_TOPDIR
elif test "$0" = "./scripts/xcConfigure.sh"; then
XCRYSDEN_TOPDIR=`pwd`
export XCRYSDEN_TOPDIR
else
echo "
Please goto XCrySDen toplevel (root) directory and execute the xcConfigure.sh
as \"./scripts/xcConfigure.sh\" or from any other place as \"xcConfigure.sh topdir\"
"
exit 1
fi
else
if test \( -d "$1" \) -a \( -x $1/xcrysden\); then
XCRYSDEN_TOPDIR=$1
export XCRYSDEN_TOPDIR
else
InstallError "XCRYSDEN_TOPDIR $1 does not exists"
fi
fi
# check if XCRYSDEN_TOPDIR exists:
xcv=`env | grep XCRYSDEN_TOPDIR`
cd $XCRYSDEN_TOPDIR
#
# assuming user shell is csh or tcsh or sh
#
if test "`echo -n a`" = "-n a" ; then
ECHO_n=echo
else
ECHO_n="echo -n"
fi
if [ \( -d /tmp \) -a \( -w /tmp \) ]; then
tempdir=/tmp
else
# set tempdir to $HOME
tempdir=$HOME
fi
CLEAR=$XCRYSDEN_TOPDIR/scripts/dummy.sh
MORE="cat -"
type clear > $tempdir/install.$$ 2>&1
if test "$?" -eq 0 ; then CLEAR=clear; fi
type more > $tempdir/install.$$ 2>&1
if test "$?" -eq 0 ; then MORE=more; fi
rm -f $tempdir/install.$$
date=`date`
export XCRYSDEN_TOPDIR
. $XCRYSDEN_TOPDIR/scripts/xcConfigure_updateProfile.sh
. $XCRYSDEN_TOPDIR/scripts/xcConfigure_definitions.sh
rm -f $tempdir/xcInstall-sh.$$ $tempdir/xcInstall-csh.$$;
|