#!/usr/bin/env bash

# Initial manup installation script
# Visit manup.mreschke.net/README
# Copyright (c) 2012, Matthew Reschke
# mReschke 2012-02-02

echo
echo "Installing manup port manager"
echo
cd /tmp
wget -q http://manup.mreschke.net/manup/manup/manup-current.tar.gz
tar -xzvf manup-current.tar.gz
rm -rf manup-current.tar.gz
cp -rf manup-*/* /
rm -rf manup-*

echo
echo "Done."
echo
echo "NOTICE: if this is a BSD system you probably want to modify"
echo "        your prefix variable in /etc/manup/manup.conf to /usr/local"
echo
echo "You can delete this install.sh script"
echo "and run manup sync then manup install manup/manup"
echo "as root or sudo!"
echo
