First stab at upgrade script committed.
This commit is contained in:
parent
939b7201dc
commit
2214851d6e
2 changed files with 83 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue