Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-webui
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
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
Code review analytics
Issue 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
caosdb
Software
caosdb-webui
Commits
0a0c3973
Commit
0a0c3973
authored
5 years ago
by
Quazgar
Committed by
Henrik tom Wörden
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Enhanced makefile
parent
3ea723ca
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
build.properties.d/00_default.properties
+7
-0
7 additions, 0 deletions
build.properties.d/00_default.properties
build.properties.files/footer_element_2.html
+7
-0
7 additions, 0 deletions
build.properties.files/footer_element_2.html
makefile
+7
-3
7 additions, 3 deletions
makefile
with
21 additions
and
3 deletions
build.properties.d/00_default.properties
+
7
−
0
View file @
0a0c3973
...
...
@@ -60,7 +60,14 @@ BUILD_FOOTER_DATA_POLICY_HREF=https://indiscale.com/?page_id=156
# Custom footer elements can be placed here (will be placed inside a <div>
# element).
BUILD_FOOTER_CUSTOM_ELEMENT_ONE
=
# BUILD_FOOTER_CUSTOM_ELEMENT_ONE='<p>Some content <img
# src="/webinterface/${BUILD_NUMBER}/pics/some_image.png"/>'
# Files from the `build.properties.files` directory can also be included here
# These files will also have a second step of variable substitution with
# ${BUILD_NUMBER}.
BUILD_FOOTER_CUSTOM_ELEMENT_TWO
=
# BUILD_FOOTER_CUSTOM_ELEMENT_TWO=$(cat footer_element_2.html)
BUILD_CUSTOM_IMPRINT
=
'<p> Put an imprint note here </p>'
This diff is collapsed.
Click to expand it.
build.properties.files/footer_element_2.html
0 → 100644
+
7
−
0
View file @
0a0c3973
<h1>
Put your template content files into this directory
</h1>
<p>
Files in this directory can be substituted into the variables defined in
build.properties.d. In a second step, parameter substitution takes place with
BUILD_NUMBER, if the word is preceded by a dollar sign: ${BUILD_NUMBER}
</p>
This diff is collapsed.
Click to expand it.
makefile
+
7
−
3
View file @
0a0c3973
...
...
@@ -66,16 +66,20 @@ merge_xsl:
build_properties
:
@
set
-a
-e
;
\
for
f
in
$$(
ls
build.properties.d/
)
;
do
source
"build.properties.d/
$$
f"
;
done
;
\
pushd
build.properties.files
;
\
for
f
in
../build.properties.d/
*
;
do
source
"
$$
f"
;
done
;
\
popd
;
\
BUILD_NUMBER
=
$(
BUILD_NUMBER
)
;
\
PROPS
=
$$(
printenv
|
grep
-e
"^BUILD_"
)
;
\
echo
"SET BUILD PROPERTIES:"
;
\
for
p
in
$$
PROPS
;
do
echo
"
$$
p"
;
done
;
\
VARS
=
$$(
printenv
|
grep
-e
"^BUILD_"
|
sed
's/=.*$$/
}
/'
|
sed
's/^/
$${
/'
)
;
\
VARS
=
$$(
printenv
|
grep
-e
"^BUILD_"
|
grep
-v
"^BUILD_NUMBER="
|
\
sed
-E
's/(BUILD_[^=]+
)
=.*/
$${
\1
}
/'
)
;
\
for
f
in
$$(
find
$(
PUBLIC_DIR
)
-type
f
)
;
do
\
echo
"BUILD FILE:
$$
f"
;
\
mv
"
$$
f"
"
$${
f
}
.tmp"
;
\
envsubst
"
$$
VARS"
<
"
$${
f
}
.tmp"
>
"
$$
f"
;
\
envsubst
"
$$
VARS"
<
"
$${
f
}
.tmp"
|
\
envsubst
"
\$
${
BUILD_NUMBER
}
"
>
"
$$
f"
;
\
rm
"
$${
f
}
.tmp"
;
\
done
@
echo
$(
BUILD_NUMBER
)
>
$(
PUBLIC_DIR
)
/.build_number
...
...
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