mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-05 21:34:17 +01:00
Updating to version 0.20.2
Many bug fixes.
This commit is contained in:
95
Install
95
Install
@@ -19,21 +19,36 @@ perai() {
|
||||
}
|
||||
|
||||
|
||||
perform() {
|
||||
result=
|
||||
eval $*
|
||||
if [ "$result" != 0 ]; then
|
||||
echo
|
||||
echo "Window Maker installation failed or aborted by user."
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
trap "echo Window Maker installation aborted. ; exit 1" 2 3
|
||||
|
||||
echo
|
||||
echo "========================"
|
||||
echo "WindowMaker Installation"
|
||||
echo "========================"
|
||||
echo "========================="
|
||||
echo "Window Maker Installation"
|
||||
echo "========================="
|
||||
echo
|
||||
echo "NOTE: If the installation procedure fails, read the INSTALL file and do"
|
||||
echo "the installation manually."
|
||||
echo "NOTE: If this script fails, read the INSTALL file and"
|
||||
echo "install by hand."
|
||||
echo
|
||||
echo "Please read the INSTALL and FAQ files before e-mailing "
|
||||
echo "questions."
|
||||
perai
|
||||
|
||||
if test "$USER" != "root"; then
|
||||
echo "Warning: you must run this script as the root user."
|
||||
perai
|
||||
echo
|
||||
echo "Be sure to specify an installation path where you have"
|
||||
echo "write persmission."
|
||||
echo "Warning: you must run this script as root to install"
|
||||
echo "Window Maker. Hit <Control>-<C> to quit this script."
|
||||
perai
|
||||
echo
|
||||
fi
|
||||
|
||||
@@ -122,17 +137,18 @@ fi
|
||||
done=0
|
||||
while [ $done = 0 ]; do
|
||||
echo
|
||||
echo "Where do you want to install WindowMaker? [$PREFIX]"
|
||||
echo "Where do you want to install Window Maker? [$PREFIX]"
|
||||
echo "Don't change it if you don't know what you're doing."
|
||||
echo "(The default path will install WindowMaker in "
|
||||
echo "$PREFIX/bin, $PREFIX/lib etc.)"
|
||||
if test $USER != root; then
|
||||
echo "Make sure to specify a path where you have write permission."
|
||||
fi
|
||||
echo "(The default will put Window Maker in $PREFIX/bin, $PREFIX/lib etc.)"
|
||||
echo -n "? "
|
||||
read foo
|
||||
|
||||
if test "x$foo" != "x"; then
|
||||
if [ "$foo" = "y" -o "$foo" = "n" ]; then
|
||||
if test "x$foo" != "x"; then
|
||||
if [ "$foo" = "y" -o "$foo" = "n" ]; then
|
||||
echo
|
||||
echo "Hmm... I don't think you really want to install WindowMaker into \"$foo\""
|
||||
echo "Hmm... I don't think you really want to install Window Maker into \"$foo\""
|
||||
echo
|
||||
else
|
||||
done=1
|
||||
@@ -142,60 +158,41 @@ while [ $done = 0 ]; do
|
||||
done=1
|
||||
fi
|
||||
echo
|
||||
echo "$PREFIX/bin must be in the PATH environment variable of all users who use WindowMaker"
|
||||
echo "$PREFIX/bin must be in the PATH environment variable of all users who use Window Maker"
|
||||
perai
|
||||
done
|
||||
|
||||
OPTIONS="$OPTIONS --prefix=$PREFIX"
|
||||
|
||||
|
||||
###################### Build libPropList
|
||||
|
||||
if [ ! -d libPropList ]; then
|
||||
gzip -d -c libPropList.tar.gz | tar xf -
|
||||
fi
|
||||
|
||||
echo "-----------------------"
|
||||
echo "Building libPropList..."
|
||||
echo "-----------------------"
|
||||
cd libPropList
|
||||
if [ ! -f config.status ]; then
|
||||
./configure
|
||||
fi
|
||||
make
|
||||
cd ..
|
||||
|
||||
if [ ! -f libPropList/libPropList.a ]; then
|
||||
echo "Build of libPropList was not successfull. "
|
||||
exit
|
||||
fi
|
||||
|
||||
|
||||
##################### Configure
|
||||
echo "--------------------------"
|
||||
echo "Configuring WindowMaker..."
|
||||
echo "Configuring Window Maker..."
|
||||
echo "--------------------------"
|
||||
if [ `uname -s` = "SCO_SV" ]; then
|
||||
echo "CFLAGS=\"$CFLAGS -belf -DANSICPP\" ./configure $OPTIONS"
|
||||
CFLAGS="$CFLAGS -belf -DANSICPP" ./configure $OPTIONS
|
||||
|
||||
perform CFLAGS=\"$CFLAGS -belf -DANSICPP\" ./configure $OPTIONS
|
||||
else
|
||||
echo "CFLAGS=\"$CFLAGS $GCCFLAGS\" ./configure $OPTIONS"
|
||||
CFLAGS="$CFLAGS $GCCFLAGS" ./configure $OPTIONS
|
||||
|
||||
perform CFLAGS=\"$CFLAGS $GCCFLAGS\" ./configure $OPTIONS
|
||||
fi
|
||||
|
||||
|
||||
#################### Compile
|
||||
echo "------------------------"
|
||||
echo "Compiling WindowMaker..."
|
||||
echo "------------------------"
|
||||
(cd src; make clean)
|
||||
make
|
||||
|
||||
echo "-------------------------"
|
||||
echo "Installing WindowMaker..."
|
||||
echo "Compiling Window Maker..."
|
||||
echo "-------------------------"
|
||||
perform (cd src; make clean)
|
||||
perform make
|
||||
|
||||
make install
|
||||
echo "--------------------------"
|
||||
echo "Installing Window Maker..."
|
||||
echo "--------------------------"
|
||||
|
||||
perform make install
|
||||
|
||||
echo
|
||||
echo "Installation Finished!"
|
||||
|
||||
Reference in New Issue
Block a user