2012-10-23 16:23:35 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2006-05-15 00:27:15 +00:00
|
|
|
# example of how to create a workunit
|
|
|
|
|
2012-10-23 16:23:35 +00:00
|
|
|
# stage the input file
|
2006-05-15 00:27:15 +00:00
|
|
|
#
|
2012-10-23 16:23:35 +00:00
|
|
|
bin/stage_file --copy project.xml
|
|
|
|
if [ $? -ne 0 ]
|
|
|
|
then
|
|
|
|
echo "stage_file failed"
|
|
|
|
exit 1
|
|
|
|
fi
|
2006-05-15 00:27:15 +00:00
|
|
|
|
|
|
|
# Run create_work to create the WU.
|
|
|
|
# The WU name ("wu_nodelete") includes the string "nodelete".
|
|
|
|
# This causes the file deleter to not delete its input files,
|
|
|
|
# so that we can use make_work.
|
|
|
|
#
|
2012-10-23 16:23:35 +00:00
|
|
|
bin/create_work --appname example_app --wu_name wu_nodelete --wu_template templates/example_app_in --result_template templates/example_app_out project.xml
|