#! /bin/bash # vim: set tabstop=4 shiftwidth=4 noexpandtab filetype=sh: # install.sh - a2cloud main installation script # # To the extent possible under law, T. Joseph Carter and Ivan Drucker have # waived all copyright and related or neighboring rights to the a2cloud # scripts themselves. Software used or installed by these scripts is subject # to other licenses. This work is published from the United States. a2cloudVersion="2.9.0" # Leave this quoted! if test "x$BASH" = "x"; then printf "This script requires bash. Please run\nit as ./install.sh from the source\ndirectory.\n" exit 1 fi # Find the path of our source directory top_src="$( dirname "${BASH_SOURCE[0]}" )" pushd $top_src >/dev/null top_src="$PWD" popd >/dev/null if [[ ! -f "$top_src/.a2cloud_source" ]]; then printf "\na2cloud: cannot find a2cloud source directory in $top_src.\n\n" exit 1 fi noPicoPkg= autoAnswerYes= process_args() { while [[ $1 ]]; do if [[ $1 == "-c" ]]; then shift noPicoPkg="-c" elif [[ $1 == "-y" ]]; then shift autoAnswerYes="-y" else shift fi done } process_args "$@" # FIXME: Show version, changes, config, allow reconfig, etc… "$top_src/scripts/show_changes" cat <