Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
pegasus-isi
ACME-Workflow
Commits
fdfbb72e
Commit
fdfbb72e
authored
Jan 28, 2015
by
Juve, Gideon
Browse files
Clean up acme-archive script
parent
871166ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
bin/acme-archive.sh
View file @
fdfbb72e
...
...
@@ -31,16 +31,26 @@ if [ -z "$STAGE" ]; then
exit
1
fi
if
!
[
-z
"
$PBS_O_WORKDIR
"
]
;
then
cd
$PBS_O_WORKDIR
fi
# Get the case name
CASE
=
$(
./xmlquery CASE
-valonly
-silent
)
# Get the full path to the run directory
RUNDIR
=
$(
./xmlquery RUNDIR
-valonly
-silent
)
RUNDIR
=
$(
cd
$RUNDIR
&&
pwd
)
# Get the workflow scratch directory
DIR
=
$(
pwd
)
# The tar works better from the run dir
cd
$RUNDIR
# Touch this file here so that it will always exist, even if it is empty
# for the first stage
touch
outputs_to_ignore
# Tar up all the output files, but ignore outputs from previous stages
tar
-czv
-f
$DIR
/
${
CASE
}
.stage
${
STAGE
}
.tar.gz
-X
outputs_to_ignore
${
CASE
}
.
*
# Update the ignore file to ignore outputs from the current stage
ls
${
CASE
}
.
*
>
outputs_to_ignore
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment