Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
starpu.gitlabpages.inria.fr
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
Model registry
Operate
Environments
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
Show more breadcrumbs
starpu
starpu.gitlabpages.inria.fr
Commits
8b924f51
Commit
8b924f51
authored
5 years ago
by
Nathalie Furmento
Browse files
Options
Downloads
Patches
Plain Diff
update /files url in html files
parent
793151b1
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitignore
+2
-0
2 additions, 0 deletions
.gitignore
.gitlab-ci.yml
+1
-4
1 addition, 4 deletions
.gitlab-ci.yml
scripts/createRedirect.sh
+0
-20
0 additions, 20 deletions
scripts/createRedirect.sh
scripts/createWebServer.sh
+37
-0
37 additions, 0 deletions
scripts/createWebServer.sh
with
40 additions
and
24 deletions
.gitignore
+
2
−
0
View file @
8b924f51
biblio/out
biblio/out
public
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
+
1
−
4
View file @
8b924f51
...
@@ -8,10 +8,7 @@ pages:
...
@@ -8,10 +8,7 @@ pages:
script
:
script
:
-
apt-get update
-
apt-get update
-
apt-get --yes install rsync
-
apt-get --yes install rsync
-
mkdir .public
-
./scripts/createWebServer.sh
-
./scripts/createRedirect.sh
-
rsync -avz --chmod=ug=rwX,o=rX --exclude .git/ --exclude .gitlab-ci.yaml contents/ .public
-
mv .public public
artifacts
:
artifacts
:
paths
:
paths
:
-
public
-
public
...
...
This diff is collapsed.
Click to expand it.
scripts/createRedirect.sh
deleted
100755 → 0
+
0
−
20
View file @
793151b1
#!/bin/bash
dir
=
$(
dirname
$0
)
public
=
$dir
/..
while
read
line
do
src
=
$(
echo
$line
|
awk
'{print $1}'
)
dst
=
$(
echo
$line
|
awk
'{print $2}'
)
echo
create redirect from
$src
to
$dst
mkdir
-p
.public/
$src
(
cat
<<
EOF
<head>
<title>Page has moved!</title>
<meta http-equiv="Refresh" content="0; URL=
$dst
" />
</head>
EOF
)
>
.public/
$src
/index.html
done
<
$dir
/redirect.txt
This diff is collapsed.
Click to expand it.
scripts/createWebServer.sh
0 → 100755
+
37
−
0
View file @
8b924f51
#!/bin/bash
dir
=
$(
dirname
$0
)
createRedirect
()
{
while
read
line
do
src
=
$(
echo
$line
|
awk
'{print $1}'
)
dst
=
$(
echo
$line
|
awk
'{print $2}'
)
echo
create redirect from
$src
to
$dst
mkdir
-p
public/
$src
(
cat
<<
EOF
<head>
<title>Page has moved!</title>
<meta http-equiv="Refresh" content="0; URL=
$dst
" />
</head>
EOF
)
>
public/
$src
/index.html
done
<
$dir
/redirect.txt
}
updateFileLinks
()
{
for
f
in
$(
grep
-rsl
'href="/files'
public
)
do
echo
update file links
in
$f
sed
-i
's/href="\/files/href="http:\/\/starpu.gforge.inria.fr\/files/'
$f
done
}
rm
-rf
public
mkdir
public
createRedirect
rsync
-az
--chmod
=
ug
=
rwX,o
=
rX
--exclude
.htaccess contents/ public
updateFileLinks
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