#!/bin/sh
if test $ echo "Usage: makedarwinup radar-number-or-label"
exit 1
fi
buildit -project cups -arch i386 -arch x86_64 -offline -archive -archiveName cups-$1 -archiveOutputDir ~/Desktop -dsymsInDstroot -buildAllAliases -noverify . || exit 1
rm -f ~/Desktop/Shared_cups-$1_HDRDSTROOT_osx.tar.gz
mv -f ~/Desktop/Shared_cups-$1_DSTROOT_osx.tar.gz ~/Desktop/cups-$1.tar.gz
echo "Send ~/Desktop/cups-$1.tar.gz to tester."
echo ""
echo "Commands for tester to run:"
echo ""
echo " sudo darwinup install ~/Desktop/cups-$1.tar.gz"
echo " sudo killall cupsd"
echo " cupsctl --debug-logging"
echo ""
echo "Use the following commands to remove the root:"
echo ""
echo " sudo darwinup uninstall cups-$1.tar.gz"
echo " sudo killall cupsd"