#!/bin/sh # copies build from Aquamacs-Raw folder # should be called AFTER building in order to install Aquamacs # this takes three optional arguments projdir=$1 # project-dir (Aquamacs CVS) dest=$2 # destination, e.g. "/Applications/Aquamacs Emacs.app" SRC=$3 # Emacs build, e.g. /Users/dr/Projects/emacs/mac/Aquamacs-Raw/Emacs.app if [ ! "$dest" ]; then dest="/Applications/Aquamacs Emacs.app" fi if [ ! "${projdir}" ] then if [ ${AQUAMACS_ROOT} ] then projdir=${AQUAMACS_ROOT} else projdir=`pwd`/../../aquamacs echo "Aquamacs Project directory set to default: $projdir" fi fi if [ ! "${SRC}" ]; then if [ "${EMACS_ROOT}" ]; then SRC="${EMACS_ROOT}/mac/Aquamacs/Aquamacs Emacs.app" else SRC="${projdir}/../emacs/mac/Aquamacs/Aquamacs Emacs.app" fi fi # echo "Destination App (e.g. /Applications/Aquamacs.app): $dest" # echo "Project CVS Dir (e.g. ~/Proj/aquamacs): $projdir" # echo "Source Dir (e.g. Aquamacs-Raw/Emacs.app): $SRC" # move to Applications mv "$SRC" "$dest"