office-gobmx/config_office/bootstrap.1

64 lines
1.3 KiB
Groff
Raw Normal View History

# executables are *.exe for WNT. This variable is necessary since Cygwin 1.5.x
if test "$GUI" = "WNT"; then
EXEEXT=".exe"
else
EXEEXT=""
fi
export EXEEXT
2000-09-18 10:18:56 -05:00
if test "$BUILD_DMAKE" != "NO"; then
if test ! -x "$SOLARENV/$OUTPATH/bin/dmake$EXEEXT"; then
2000-09-18 10:18:56 -05:00
cd "$SRC_ROOT/dmake" || exit
2003-01-20 08:00:18 -06:00
# Special case! The w32/tcsh build needs CC pointing to the MSVC++ compiler
# but we need a cygwin/gcc build dmake to understand the posix paths
if test "$GUI" = "WNT" -a "$USE_SHELL" != "4nt"; then
CC=""
CXX=""
export CC
export CXX
fi
2000-09-18 10:18:56 -05:00
# For the W32/4nt case
rm -rf objects
# For normal unixy systems
if test -f "Makefile" ; then
$GNUMAKE distclean || exit
fi
2000-09-18 10:18:56 -05:00
./configure || exit
## invoke the gnu make command set by configure.
$GNUMAKE || exit
2000-09-18 10:18:56 -05:00
echo ""
echo "dmake has been successfully built"
cd ..
else
echo ""
echo "dmake present in $SOLARENV/$OUTPATH/bin/dmake$EXEEXT"
fi
fi
mkdir -p "$SOLARENV/$OUTPATH/bin"
if test "$BUILD_DMAKE" != "NO"; then
cp -f "$SRC_ROOT/dmake/dmake$EXEEXT" "$SOLARENV/$OUTPATH/bin" || exit
echo ""
echo "dmake copied to $SOLARENV/$OUTPATH/bin/dmake$EXEEXT"
fi
#make sure build.pl is executable
chmod +x "$SRC_ROOT/solenv/bin/build.pl"
chmod +x "$SRC_ROOT/solenv/bin/zipdep.pl"
chmod +x "$SRC_ROOT/solenv/bin/gccinstlib.pl"