usage and argument handling for bin/rm* and bin/touch* utilities

This commit is contained in:
Mark Olesen
2008-08-08 13:07:10 +02:00
parent de525cda45
commit 4085575669
9 changed files with 180 additions and 19 deletions

View File

@ -1,3 +1,17 @@
#!/bin/sh
touch $FOAM_APPBIN/*
if [ "$#" -ne 0 ]
then
echo "Usage: ${0##*/}"
echo " touch FOAM_APPBIN"
exit 1
fi
if [ -d "$FOAM_APPBIN" ]
then
echo "touching FOAM_APPBIN: $FOAM_APPBIN"
touch $FOAM_APPBIN/*
else
echo "no FOAM_APPBIN: $FOAM_APPBIN"
fi
#------------------------------------------------------------------------------