We probably need some of the other bits in there (specifically, setting
the perms on the home directory) so make it less of a special snowflake.
;;
*-darwin*)
PACKAGER=brew
- brew install automake
- exit 0
+ PACKAGES="automake"
;;
*)
PACKAGER=apt
INSTALL_FIDO_PPA="no"
export DEBIAN_FRONTEND=noninteractive
-#echo "Setting up for '$TARGETS'"
-
set -ex
if [ -x "`which lsb_release 2>&1`" ]; then
esac
done
+echo "Setting up for '$TARGETS'"
for TARGET in $TARGETS; do
case $TARGET in
default|without-openssl|without-zlib|c89)
esac
;;
*pam)
- PACKAGES="$PACKAGES libpam0g-dev"
+ case "$PACKAGER" in
+ apt) PACKAGES="$PACKAGES libpam0g-dev" ;;
+ esac
;;
sk)
INSTALL_FIDO_PPA="yes"
PACKAGES=""
fi
;;
+ brew)
+ if [ ! -z "PACKAGES" ]; then
+ if brew install $PACKAGES; then
+ PACKAGES=""
+ fi
+ fi
+ ;;
setup)
if /cygdrive/c/setup.exe -q -P `echo "$PACKAGES" | tr ' ' ,`; then
PACKAGES=""