Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
Quack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
commul
Zeit.shift
Quack
Commits
c0850fbf
Commit
c0850fbf
authored
10 years ago
by
Toke Eskildsen
Browse files
Options
Downloads
Patches
Plain Diff
Intermediate mpc-files are now stored in /tmp (or at a user specified location). This closes #63
parent
16b7715c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
quack.sh
+9
-1
9 additions, 1 deletion
quack.sh
with
9 additions
and
1 deletion
quack.sh
+
9
−
1
View file @
c0850fbf
...
@@ -186,6 +186,9 @@ export BLOWN_BLACK_WT=0,0,0
...
@@ -186,6 +186,9 @@ export BLOWN_BLACK_WT=0,0,0
export
SNIPPET_FOLDER
=
""
export
SNIPPET_FOLDER
=
""
export
SNIPPET_IMAGE
=
""
export
SNIPPET_IMAGE
=
""
# Temporary folder used for .mpc files and similar
export
DEFAULT_QUACK_TMP
=
"/tmp"
# End default settings. User-supplied overrides will be loaded from quack.settings
# End default settings. User-supplied overrides will be loaded from quack.settings
# If present in a source-folder, the content of the folder will be inserted into
# If present in a source-folder, the content of the folder will be inserted into
...
@@ -362,6 +365,10 @@ if [ ! -f "$ROOT/web/$DRAGON" ]; then
...
@@ -362,6 +365,10 @@ if [ ! -f "$ROOT/web/$DRAGON" ]; then
fi
fi
fi
fi
if
[
-z
"
$QUACK_TMP
"
]
;
then
export
QUACK_TMP
=
$DEFAULT_QUACK_TMP
fi
# Copy OpenSeadragon and all css-files to destination
# Copy OpenSeadragon and all css-files to destination
function
copyFiles
()
{
function
copyFiles
()
{
if
[
!
-d
"
$DEST
"
]
;
then
if
[
!
-d
"
$DEST
"
]
;
then
...
@@ -477,7 +484,8 @@ function makeImages() {
...
@@ -477,7 +484,8 @@ function makeImages() {
# The intermediate format mpc is memory-mapped and very fast for reuse
# The intermediate format mpc is memory-mapped and very fast for reuse
local
GM_INTERMEDIATE
=
"
${
DEST_FOLDER
}
/
${
BASE
}
.mpc"
local
GM_INTERMEDIATE
=
`
echo
"
${
DEST_FOLDER
}
/
${
BASE
}
.mpc"
|
sed
's@/@_@g'
`
local
GM_INTERMEDIATE
=
"
$QUACK_TMP
/
$GM_INTERMEDIATE
"
if
[
!
-f
"
$SOURCE_IMAGE
"
]
;
then
if
[
!
-f
"
$SOURCE_IMAGE
"
]
;
then
echo
"The source image
$S
does not exists"
>
&2
echo
"The source image
$S
does not exists"
>
&2
...
...
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