update dev300-m58
[ooovba.git] / bootstrap.1
blob146d6f9443dd46a49d84317c4ece26fb032c91e5
2 # executables are *.exe for WNT. This variable is necessary since Cygwin 1.5.x
3 # Use spawn instead of fork when building dmake on cygwin. 
4 if test "$GUI" = "WNT"; then
5     EXEEXT=".exe"
6     DMAKE_CONF="--enable-spawn"
7 else
8     EXEEXT=""
9     DMAKE_CONF=""
11 export EXEEXT
13 # ------------------------------------------------------------------------------
14 # Build dmake
16 if test "$BUILD_DMAKE" != "NO"; then
18     if test ! -x "$SOLARENV/$OUTPATH/bin/dmake$EXEEXT"; then
20         cd "$SRC_ROOT/dmake" || exit
22         # Special case! The w32/tcsh build needs CC pointing to the MSVC++ compiler
23         # but we need a cygwin/gcc build dmake to understand the posix paths
24         if test "$GUI" = "WNT" -a "$USE_SHELL" != "4nt"; then
25             CC=""
26             CXX=""
27             export CC
28             export CXX
29         fi
31         # For the W32/4nt case
32         rm -rf objects
34         # For normal unixy systems
35         if test -f "Makefile" ; then
36             $GNUMAKE distclean || exit
37         fi
39         ./configure $DMAKE_CONF || exit
41         ## invoke the gnu make command set by configure.
42         $GNUMAKE || exit
44         echo ""
45         echo "dmake has been successfully built"
47         cd ..
49     else
51         echo ""
52         echo "dmake present in $SOLARENV/$OUTPATH/bin/dmake$EXEEXT"
54     fi
58 mkdir -p "$SOLARENV/$OUTPATH/bin"
59 if test "$BUILD_DMAKE" != "NO"; then
60     cp -f "$SRC_ROOT/dmake/dmake$EXEEXT" "$SOLARENV/$OUTPATH/bin" || exit
61     echo ""
62     echo "dmake copied to $SOLARENV/$OUTPATH/bin/dmake$EXEEXT"
65 if test "$GUI" = "WNT" -a ! -x "$SOLARENV/$OUTPATH/bin/guw$EXEEXT"; then
66   echo ""
67   echo "Calling $GNUMAKE in guw"
68   cd "$SRC_ROOT/guw" || exit
69   $GNUMAKE || exit
70   echo ""
71   echo "guw has been successfully made"
72   cp -f "$SRC_ROOT/guw/guw$EXEEXT" "$SOLARENV/$OUTPATH/bin" || exit
73   echo ""
74   echo "guw copied to $SOLARENV/$OUTPATH/bin/guw$EXEEXT"
77 #make sure build.pl is executable 
79 chmod +x "$SRC_ROOT/solenv/bin/build.pl"
80 chmod +x "$SRC_ROOT/solenv/bin/build_client.pl"
81 chmod +x "$SRC_ROOT/solenv/bin/zipdep.pl"
82 chmod +x "$SRC_ROOT/solenv/bin/gccinstlib.pl"