redirections.sh 1.5 KB
Newer Older
 JosephK's avatar
JosephK committed
1
#!/bin/bash
2

3 4 5
SCRIPT=$(readlink -f $0)
SCRIPTPATH=`dirname $SCRIPT`

 JosephK's avatar
JosephK committed
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
declare -A pages=(
    ['nextcloud']="installation-de-nextcloud"
    ['wallabag']="installation-de-wallabag"
    ['searx']="installation-de-searx"
    ['zerobin']="installation-de-zerobin"
    ['kanboard']="installation-de-kanboard"
    ['bicbucstriim']="installation-d-un-serveur-opds"
    ['umap']="installation-de-umap"
    ['framadate']="installation-de-framadate"
    ['lufi']="installation-de-lufi"
    ['framaforms']="installation-de-framaforms"
    ['gitlab']="installation-de-gitlab-et-mattermost"
    ['lstu']="installation-de-lstu"
    ['sympa']="installation-de-sympa"
    ['framaestro']="installation-de-framaestro"
    ['scrumblr']="installation-de-scrumblr"
    ['wisemapping']="installation-de-wisemapping"
    ['minetest']="installation-de-minetest"
    ['ttrss']="installation-de-tinytinyrss"
    ['turtl']="installation-de-turtl"
    ['etherpad']="installation-detherpad"
    ['mastodon']="installation-de-mastodon"
    ['lutim']="installation-de-lutim"
    ['jitsi-meet']="installation-de-jitsi-meet"
    ['svg-edit']="installation-de-svg-edit"
    ['loomio']="installation-de-loomio"
    ['shaarli']="installation-de-shaarli"
)

cd $SCRIPTPATH

 JosephK's avatar
JosephK committed
37 38
mkdir _book/cultiver-son-jardin/

 JosephK's avatar
JosephK committed
39
for k in "${!pages[@]}"; do
 JosephK's avatar
JosephK committed
40
    mkdir _book/cultiver-son-jardin/${pages[$k]}
 JosephK's avatar
JosephK committed
41
    echo '<html><head><meta http-equiv="refresh" content="0; URL=../../fr/cultiver-son-jardin/'$k'.html"></head><body></body></html>' > _book/cultiver-son-jardin/${pages[$k]}/index.html
 JosephK's avatar
JosephK committed
42
done