10,14 → 10,15 |
echo "" |
echo "[option] = Option for configure:" |
echo " - help = Display configure instructions." |
echo " - nomake = Only prepare workstation.h file (base directory and online/offline mode)." |
echo " - all = Prepare workstation.h file and set used libraries." |
echo " - clean = Clean the installation directory." |
echo " - nomake = Only prepare system dependent files (base directory and online/offline mode)." |
echo " - all = Prepare system dependent files and make used libraries." |
echo " - clean = Clean the installation directory. Does not clean the results directory." |
echo " - compress = Compress the source code in a tar-ball." |
echo "" |
echo "[type] = Configure for use in online or offline mode (only needed in nomake and all):" |
echo " - I = Online mode." |
echo " - O = Offline mode (no connection to CAMAC, motor, voltage supply and scope)." |
echo " - S = Offline mode with scope connection (no connection to CAMAC, motor and voltage supply)." |
echo "" |
echo "#------------------------------" |
} |
64,7 → 65,7 |
mkdir $startdir/camac_gui_windowed |
mkdir $startdir/camac_gui_windowed/results |
echo "Copying source files to temporary directory $startdir/camac_gui_windowed..." |
cp -r configure daq.h daqscope.h GuiLinkDef.h libxxusb.cpp libxxusb.h libxxusb.o root_include.h start.cxx usb.h windowed_test.C windowed_test.h wusbcc.h wusbxx_dll.c wusbxx_dll.h wusbxx_dll.o mpod/ MIKRO/ vxi11_x86_64/ vxi11_i686/ input/ ./camac_gui_windowed/ |
cp -r configure daq.h daqscope.h GuiLinkDef.h libxxusb.cpp root_include.h start.cxx windowed_test.C windowed_test.h wusbcc.h wusbxx_dll.c wusbxx_dll.h mpod/ MIKRO/ vxi11_x86_64/ vxi11_i686/ input/ ./camac_gui_windowed/ |
cd $startdir/camac_gui_windowed |
echo "Cleaning the base directory in $startdir/camac_gui_windowed..." |
rm -f *.bak |
95,7 → 96,7 |
basedir=$(echo $startdir | sed 's/\//\\\//g') |
|
if [ "$1" == "nomake" ] || [ "$1" == "all" ]; then |
if [ "$2" == "O" ] || [ "$2" == "I" ]; then |
if [ "$2" == "O" ] || [ "$2" == "I" ] || [ "$2" == "S" ]; then |
grep -q "#define WORKSTAT 'N'" $startdir/input/workstation.h.in |
if [ $? == 0 ]; then |
sed "s/define WORKSTAT 'N'/define WORKSTAT '$2'/" $startdir/input/workstation.h.in > $startdir/workstation.h.mid |
120,17 → 121,20 |
if [ "$2" == "I" ]; then |
sed "s/CAMLIB = \$(LIBFILE)/CAMLIB = \$(LIBFILE) -lusb/g" $startdir/Makefile.mid > $startdir/Makefile |
rm $startdir/Makefile.mid |
elif [ "$2" == "O" ]; then |
elif [ "$2" == "O" ] || [ "$2" == "S" ]; then |
cp $startdir/input/Makefile.in $startdir/Makefile |
fi |
fi |
|
if [ "$2" == "O" ]; then |
if [ "$2" == "O" ] || [ "$2" == "S" ]; then |
cp $startdir/input/daqusb.C.offline $startdir/daqusb.C |
cp $startdir/input/start.sh.offline $startdir/start.sh |
cp $startdir/input/libxxusb.h.offline $startdir/libxxusb.h |
cp $startdir/input/usb.h.offline $startdir/usb.h |
elif [ "$2" == "I" ]; then |
cp $startdir/input/daqusb.C.online $startdir/daqusb.C |
cp $startdir/input/start.sh.online $startdir/start.sh |
cp $startdir/input/libxxusb.h.online $startdir/libxxusb.h |
fi |
fi |
fi |
151,7 → 155,7 |
make clean |
rm -f Makefile |
else |
if [ "$2" == "O" ] || [ "$2" == "I" ]; then |
if [ "$2" == "O" ] || [ "$2" == "I" ] || [ "$2" == "S" ]; then |
make |
else |
echo "Error! No configuration type selected (second argument)." |
176,7 → 180,7 |
make clean |
rm -f Makefile |
else |
if [ "$2" == "O" ] || [ "$2" == "I" ]; then |
if [ "$2" == "O" ] || [ "$2" == "I" ] || [ "$2" == "S" ]; then |
make |
else |
echo "Error! No installation type selected (second argument)." |