mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-25 13:07:02 +00:00
44 lines
706 B
Bash
Executable File
44 lines
706 B
Bash
Executable File
#!/bin/sh
|
|
|
|
usage()
|
|
{
|
|
echo "$0 [--prefix install_directory]"
|
|
exit 1
|
|
}
|
|
|
|
INSTALL_DIR="/usr/local"
|
|
|
|
# Parse parameters
|
|
while [ $# -ge 1 ]; do
|
|
case $1 in
|
|
--prefix)
|
|
INSTALL_DIR=$2
|
|
shift
|
|
;;
|
|
*)
|
|
usage
|
|
;;
|
|
esac
|
|
shift
|
|
done
|
|
|
|
mkdir -p $INSTALL_DIR/bin
|
|
mkdir -p $INSTALL_DIR/share
|
|
|
|
rm -rf $INSTALL_DIR/share/narwhal
|
|
cp -fR objj $INSTALL_DIR/share/narwhal
|
|
|
|
BINS=`ls objj/bin`
|
|
for BIN in $BINS
|
|
do
|
|
ln -sf $INSTALL_DIR/share/narwhal/bin/$BIN $INSTALL_DIR/bin/$BIN
|
|
chmod +x $INSTALL_DIR/bin/$BIN
|
|
done
|
|
|
|
chmod +x $INSTALL_DIR/share/narwhal/bin/*
|
|
|
|
gem install *.gem
|
|
gem cleanup objective-j
|
|
|
|
echo "Cappuccino Tools Installed"
|