Commit 88611aec authored by Ben Avison's avatar Ben Avison
Browse files

Remove mk.sh script (obsoleted by Env 1.38)

parent 701a63de
#!/bin/bash
# A script to simplify building a single component.
# Syntax: mk.sh [target] [environment]
# For more flexibility, use make directly.
TARGET=all
[[ "$1" =~ (all|install|debug|clean|links) ]] && TARGET=$1 && shift
[ -z "$1" ] || BUILD=$1 && shift
[ -n "$BUILD" ] || BUILD=ROOL/Disc
cd $(dirname $0)
# Two ways of doing the same thing
if [ -n "$BUILDUSINGSUBSHELL" ]; then
HERE=`pwd`
cd $RISCOS
if [ $TARGET == "install" ]; then
Env/$BUILD.sh "cd $HERE && make install INSTDIR=$INSTALLDIR/!System/310/Modules -I\$MAKEFILEDIR --no-print-directory"
else
Env/$BUILD.sh "cd $HERE && make $TARGET -I\$MAKEFILEDIR --no-print-directory"
fi
else
pushd $RISCOS > /dev/null
source Env/$BUILD.sh
popd > /dev/null
if [ $TARGET == "install" ]; then
make install INSTDIR=$INSTALLDIR/!System/310/Modules -I$MAKEFILEDIR --no-print-directory
else
make $TARGET -I$MAKEFILEDIR --no-print-directory
fi
fi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment