Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
schaertl_andreas
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
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
supervision
schaertl_andreas
Commits
a8cb273e
Commit
a8cb273e
authored
4 years ago
by
Andreas Schärtl
Browse files
Options
Downloads
Patches
Plain Diff
ulo/scripts: fix prepare scripts
parent
38bc05fe
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ulo/scripts/isabelle-prepare-directory.sh
+8
-3
8 additions, 3 deletions
ulo/scripts/isabelle-prepare-directory.sh
ulo/scripts/isabelle-prepare-file.sh
+2
-2
2 additions, 2 deletions
ulo/scripts/isabelle-prepare-file.sh
ulo/scripts/reset-libraries.sh
+4
-4
4 additions, 4 deletions
ulo/scripts/reset-libraries.sh
with
14 additions
and
9 deletions
ulo/scripts/isabelle-prepare-directory.sh
+
8
−
3
View file @
a8cb273e
...
...
@@ -15,10 +15,15 @@ if [ ! $# -eq 1 ]; then
exit
1
fi
directory
=
"
$
1
"
threads
=
6
directory
=
"
$
(
realpath
"
$1
"
)
"
threads
=
8
script_dir
=
$(
dirname
"
$0
"
)
cd
"
$script_dir
"
find
"
$directory
"
-name
"*.rdf.xz"
-print0
-exec
xargs
-0
-P
$threads
./isabelle-prepare-file.sh
{}
\;
# Recurse in $directory and pass each found item to
# isabelle-prepare-file.sh. We use xargs(1) to seep this up by
# exploiting parallelism.
#
# We also run it with niceness 15 as to not annoy other CIP users.
find
"
$directory
"
-name
"*.rdf.xz"
-print0
|
nice
-n
15 xargs
-0
-P
$threads
-I
{}
./isabelle-prepare-file.sh
{}
This diff is collapsed.
Click to expand it.
ulo/scripts/isabelle-prepare-file.sh
+
2
−
2
View file @
a8cb273e
...
...
@@ -11,11 +11,11 @@ if [ ! $# -eq 1 ]; then
exit
1
fi
file
=
"
$(
realpath
"
$1
"
)
"
script_dir
=
$(
dirname
"
$0
"
)
cd
"
$script_dir
"
file
=
"
$1
"
echo
"
$file
"
1>&2
# the filename of the extracted (uncompressed) file
...
...
This diff is collapsed.
Click to expand it.
ulo/scripts/reset-libraries.sh
+
4
−
4
View file @
a8cb273e
#! /bin/sh
#
r
eset git submodules in
thi
s directory
#
R
eset git submodules in
/ulo/librarie
s directory
set
-eu
...
...
@@ -14,7 +14,7 @@ reset_repo() {
base
=
$(
dirname
"
$0
"
)
reset_repo
"
$base
"
/libraries/coq
reset_repo
"
$base
"
/libraries/isabelle-distribution
reset_repo
"
$base
"
/libraries/isabelle-afp
reset_repo
"
$base
"
/
../
libraries/coq
reset_repo
"
$base
"
/
../
libraries/isabelle-distribution
reset_repo
"
$base
"
/
../
libraries/isabelle-afp
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