Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mhc_rank
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Patrick Skillman-Lawrence
mhc_rank
Commits
b649c79c
Commit
b649c79c
authored
5 years ago
by
Tim O'Donnell
Browse files
Options
Downloads
Patches
Plain Diff
fix
parent
3b89017f
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
downloads-generation/models_class1_pan_unselected/GENERATE.sh
+23
-6
23 additions, 6 deletions
...loads-generation/models_class1_pan_unselected/GENERATE.sh
with
23 additions
and
6 deletions
downloads-generation/models_class1_pan_unselected/GENERATE.sh
+
23
−
6
View file @
b649c79c
...
...
@@ -21,10 +21,12 @@ else
fi
# Send stdout and stderr to a logfile included with the archive.
exec
>
>(
tee
-ia
"
$SCRATCH_DIR
/
$DOWNLOAD_NAME
/LOG.txt"
)
exec
2>
>(
tee
-ia
"
$SCRATCH_DIR
/
$DOWNLOAD_NAME
/LOG.txt"
>
&2
)
LOG
=
"
$SCRATCH_DIR
/
$DOWNLOAD_NAME
/LOG.
$(
date
+%s
)
.txt"
exec
>
>(
tee
-ia
"
$LOG
"
)
exec
2>
>(
tee
-ia
"
$LOG
"
>
&2
)
# Log some environment info
echo
"Invocation:
$0
$@
"
date
pip freeze
git status
...
...
@@ -79,7 +81,22 @@ do
done
cp
$SCRIPT_ABSOLUTE_PATH
.
bzip2 LOG.txt
for
i
in
$(
ls
LOG-worker.
*
.txt
)
;
do
bzip2
$i
;
done
tar
-cjf
"../
${
DOWNLOAD_NAME
}
.tar.bz2"
*
echo
"Created archive:
$SCRATCH_DIR
/
${
DOWNLOAD_NAME
}
.tar.bz2"
bzip2
-f
"
$LOG
"
for
i
in
$(
ls
LOG-worker.
*
.txt
)
;
do
bzip2
-f
$i
;
done
RESULT
=
"
$SCRATCH_DIR
/
${
DOWNLOAD_NAME
}
.
$(
date
+%Y%m%d
)
.tar.bz2"
tar
-cjf
"
$RESULT
"
*
echo
"Created archive:
$RESULT
"
# Split into <2GB chunks for GitHub
PARTS
=
"
${
RESULT
}
.part."
# Check for pre-existing part files and rename them.
for
i
in
$(
ls
"
${
PARTS
}
"
*
)
do
DEST
=
"
${
i
}
.OLD.
$(
date
+%s
)
"
echo
"WARNING: already exists:
$i
. Moving to
$DEST
"
mv
$i
$DEST
done
split
-b
2000M
"
$RESULT
"
"
$PARTS
"
echo
"Split into parts:"
ls
-lh
"
${
PARTS
}
"
*
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment