Initial commit

This commit is contained in:
Nico Schottelius 2006-07-20 09:54:37 +02:00
commit d3c6e29902
202 changed files with 3909 additions and 0 deletions

40
generate_script_header Executable file
View file

@ -0,0 +1,40 @@
#!/bin/sh
#
# Nico Schottelius <nico@schottelius.(net|org)>
# Date: Wed Apr 30 14:57:23 CEST 2003
# Last Modified: Thu Jun 17 22:37:58 CEST 2004
#
# nico@flapp:~/bin $ cat ~/.script-template
# author="Nico Schottelius"
# email="nico@schottelius.(net|org)"
#
TEMPLATE=~/.script-template
if [ $# -lt 1 ]; then
echo "`basename $0`: new script file(s)"
exit 1
fi
for _file in $@; do
if [ -e "$_file" ]; then
echo "$_file exists. Will not overwrite it. Or will I ?"
else
if [ ! -e "$TEMPLATE" ]; then
echo "Required Template missing. Aborting."
exit 1
else
. $TEMPLATE
cat << EOF > "$_file"
#!/bin/sh
#
# $author <$email>
# Date: `date +%d-%h-%Y`
# Last Modified: -
#
EOF
fi
fi
done