Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
faust
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
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
GitLab upgrade completed. Current version is 17.11.4.
Show more breadcrumbs
faust group
faust
Commits
da2798f3
Commit
da2798f3
authored
4 years ago
by
hhakim
Browse files
Options
Downloads
Patches
Plain Diff
Add a script to generate a package download page and call it in ci gitlab-pages job.
parent
826e3af8
No related branches found
No related tags found
No related merge requests found
Pipeline
#834042
skipped
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+2
-0
2 additions, 0 deletions
.gitlab-ci.yml
gen_doc/gen_pkg_dl_page.sh
+41
-0
41 additions, 0 deletions
gen_doc/gen_pkg_dl_page.sh
with
43 additions
and
0 deletions
.gitlab-ci.yml
+
2
−
0
View file @
da2798f3
...
...
@@ -311,6 +311,8 @@ pages:
-
mkdir -p ../public/last-doc
-
cp -Rf doc/html ../public/last-doc/
-
mkdir -p ../public/last-doc/packages
-
../gen_doc/gen_pkg_dl_page.sh $CI_COMMIT_TAG
# download.html generated
-
mv download.html ../public/last-doc/packages/
-
mv *.pkg *.rpm *.deb *.exe ../public/last-doc/packages/
needs
:
-
job
:
pkg_macos_release
...
...
This diff is collapsed.
Click to expand it.
gen_doc/gen_pkg_dl_page.sh
0 → 100755
+
41
−
0
View file @
da2798f3
#!/bin/bash
function
usage
{
echo
"
$0
<faust_version> [<filepath>]"
}
function
sha256sum_or_not_found
{
[
-r
"
$1
"
]
&&
sha256sum
$1
||
echo
"file not found"
}
function
generate_html
{
echo
"<b>Latest FAµST version:
$VERSION
(
$(
date
+%D
)
)"
echo
"<table cellpadding="
5
">"
echo
"<tr><th>System</th><th>Link</th><th>SHA256</th></tr>"
for
CONF
in
"Linux RPM::faust-
$VERSION
-x86_64.rpm"
"Linux DEB::faust-
$VERSION
-x86_64.deb"
"Windows 10 EXE::faust-
$VERSION
-amd64.exe"
"Mac OS X PKG::faust-
$VERSION
.pkg"
do
SYS
=
${
CONF
%%
::
*
}
FILE
=
${
CONF
##*
::
}
echo
"<tr><td>
$SYS
</td><td><a href=
\"
https://faustgrp.gitlabpages.inria.fr/faust/last-doc/packages/
$FILE
\"
>
$FILE
</a></td><td>
$(
sha256sum_or_not_found
$FILE
)
</td></tr>"
done
echo
"</table>"
}
[[
$#
< 1
]]
&&
usage
&&
exit
1
VERSION
=
$1
[[
!
VERSION
=
~ ^
([[
:digit:]].?
)
+
$
]]
||
(
echo
"
$VERSION
is not a valid version tag."
)
if
[[
$#
-gt
3
]]
then
FILEPATH
=
$2
else
FILEPATH
=
"download.html"
fi
generate_html
>
$FILEPATH
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