merged tag ooo/OOO340_m1
[LibreOffice.git] / bootstrap.1
blob156f5625557ad90a8b2345c2defb0e8b37161eb4
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"; then
25             CC=""
26             CXX=""
27             export CC
28             export CXX
29         fi
31         # For normal unixy systems
32         if test -f "Makefile" ; then
33             $GNUMAKE distclean || exit
34         fi
36         ./configure $DMAKE_CONF || exit
38         ## invoke the gnu make command set by configure.
39         $GNUMAKE || exit
41         echo ""
42         echo "dmake has been successfully built"
44         cd ..
46     else
48         echo ""
49         echo "dmake present in $SOLARENV/$OUTPATH/bin/dmake$EXEEXT"
51     fi
55 mkdir -p "$SOLARENV/$OUTPATH/bin"
56 if test "$BUILD_DMAKE" != "NO"; then
57     cp -f "$SRC_ROOT/dmake/dmake$EXEEXT" "$SOLARENV/$OUTPATH/bin" || exit
58     echo ""
59     echo "dmake copied to $SOLARENV/$OUTPATH/bin/dmake$EXEEXT"
62 if test "$GUI" = "WNT" -a ! -x "$SOLARENV/$OUTPATH/bin/guw$EXEEXT"; then
63   echo ""
64   echo "Calling $GNUMAKE in guw"
65   cd "$SRC_ROOT/guw" || exit
66   $GNUMAKE || exit
67   echo ""
68   echo "guw has been successfully made"
69   cp -f "$SRC_ROOT/guw/guw$EXEEXT" "$SOLARENV/$OUTPATH/bin" || exit
70   echo ""
71   echo "guw copied to $SOLARENV/$OUTPATH/bin/guw$EXEEXT"
74 #make sure build.pl is executable 
76 chmod +x "$SRC_ROOT/solenv/bin/build.pl"
77 chmod +x "$SRC_ROOT/solenv/bin/build_client.pl"
78 chmod +x "$SRC_ROOT/solenv/bin/zipdep.pl"
79 chmod +x "$SRC_ROOT/solenv/bin/gccinstlib.pl"
81 # fetch or update external tarballs
82 if [ "$DO_FETCH_TARBALLS" = "yes" ]; then
83         $SRC_ROOT/fetch_tarballs.sh $SRC_ROOT/ooo.lst