# * Unless the -y option is provided, this script then interactively
# walks you through confirmation of common configuration settings.
#
# * Unless the -y option is provided, this script then interactively
# walks you through confirmation of common configuration settings.
#
# Typical usage:
# The first time you invoke this script, use the -i option to install
# nmh in the specified location. The script will walk you through the
# Typical usage:
# The first time you invoke this script, use the -i option to install
# nmh in the specified location. The script will walk you through the
git_opts="${git_opts:+$git_opts }--branch $branch"
if "$gitdir"/git clone $git_opts "git://$gitrepo/nmh.git"; then
cd nmh || die "failed to clone nmh"
git_opts="${git_opts:+$git_opts }--branch $branch"
if "$gitdir"/git clone $git_opts "git://$gitrepo/nmh.git"; then
cd nmh || die "failed to clone nmh"
[ "$verbose" -eq 0 ] && wget_opts='--quiet'
wget --output-document - $wget_opts "$snapshot" | tar xzf -
elif [ "`finddir curl`" ]; then
[ "$verbose" -eq 0 ] && wget_opts='--quiet'
wget --output-document - $wget_opts "$snapshot" | tar xzf -
elif [ "`finddir curl`" ]; then
curl --location $curl_opts "$snapshot" | tar xzf -
else
die 'unable to find program to download nmh sources'
curl --location $curl_opts "$snapshot" | tar xzf -
else
die 'unable to find program to download nmh sources'