First stab at upgrade script committed.

This commit is contained in:
Laurence Withers 2006-07-26 20:18:00 +01:00
commit 2214851d6e
2 changed files with 83 additions and 1 deletions

View file

@ -8,6 +8,9 @@
# Creates a new source module.
# save a copy of the commandline for the upgrade script
MODULE_PARAMS="$@"
# Get the directory of the repository (needed to include functions file)
@ -87,7 +90,7 @@ echo "Instantiating module 'src/${NAME}'..."
do_cmd cp -rL ${TEMPLATE} src/${NAME} || cleanup
do_cmd cd src/${NAME} || cleanup
do_cmd rm instantiate || cleanup
do_cmd_redir .params echo "$@" || cleanup
do_cmd_redir .params echo "${MODULE_PARAMS}" || cleanup
( source ../../${TEMPLATE}/instantiate ) || cleanup