#!/bin/sh
#
# Upload one or more macros into master tree
#
#  Rev -     10/31/2009    David Edwards <david@300m.us>

if [ $# -eq 0 ]; then
    echo
    echo " Put macros into a subdirector on the macro website"
    echo
    echo "   Usage: putsubdir subdir mac1 mac2 ..."
    echo
    echo " Example:"
    echo
    echo "   putsubdir tools dia.mac mkmac.perl"
    echo
    echo " Subdirectories match the ones created by getmacs"
	echo " under the /mac directory and must exist"
    echo
    exit 1
fi

SUBDIR=$1
shift

echo "Putting <$*> into <$SUBDIR> subdirectory."

scp $* thrzerz9@300m.us:./public_html/btdt/prog/ansys/apdl/mac/$SUBDIR/

