Source

js-elisp / install.sh

Full commit
#!/bin/bash

set -e -u -o pipefail
ulimit -c unlimited # allow arbitrarily large core files

mode=test
for arg in "$@"; do
    case $arg in
        -prod)
            mode=prod
            ;;
        -test)
            mode=test
            ;;
        *)
            echo "Unknown argument: $arg"
            exit 2
            ;;
    esac
done

if [ $mode = "prod" ]; then
    echo "You are about to install a new PRODUCTION version of omake-emacs."
    echo -n "Press ENTER to proceed, Ctrl-C to abort. "
    read
fi

make -C info

exe=omake_server.exe

echo "Installing $exe for mode: $mode"

case $mode in
    prod)
        installed_exe=$exe
        ;;
    test)
        installed_exe=omake_server_test.exe
        ;;
esac

hg push roll-$mode
jadmin install to-merge -loc 'hkg,ldn,nyc' $exe /mnt/global/base/bin/$installed_exe