Vous n'êtes pas identifié(e).
L'icône rouge permet de télécharger chaque page du wiki visitée au format PDF et la grise au format ODT →
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente Prochaine révision Les deux révisions suivantes | ||
atelier:arborescence [20/09/2013 12:55] kao [Mettre un tuto à sa place] ajout sections à completer |
atelier:arborescence [20/09/2013 15:07] captnfab [Mettre un tuto à sa place] |
||
---|---|---|---|
Ligne 203: | Ligne 203: | ||
SECTION=$(apt-cache show $PACKAGE | sed -n '/^Section/s/^Section: //p') | SECTION=$(apt-cache show $PACKAGE | sed -n '/^Section/s/^Section: //p') | ||
- | # Tableau à compléter | ||
declare -A paths | declare -A paths | ||
- | paths=( ["unknown"]="doc:autres" ) | ||
- | paths=( ["virtual"]="doc:autres" ) | ||
- | paths=( ["tasks"]="doc:" ) | ||
- | paths=( ["admin"]="doc:systeme" ) | ||
- | paths=( ["alien"]="doc:" ) | ||
- | paths=( ["base"]="doc:" ) | ||
- | paths=( ["cli-mono"]="doc:programmation" ) | ||
- | paths=( ["comm"]="doc:" ) | ||
- | paths=( ["database"]="doc:programmation" ) | ||
- | paths=( ["debug"]="doc:systeme" ) | ||
- | paths=( ["devel"]="doc:programmation" ) | ||
- | paths=( ["doc"]="doc:" ) | ||
- | paths=( ["editors"]="doc:editeurs" ) | ||
- | paths=( ["electronics"]="doc:electronique" ) | ||
- | paths=( ["embedded"]="doc:electronique" ) | ||
- | paths=( ["fonts"]="doc:media" ) | ||
- | paths=( ["games"]="doc:jeux" ) | ||
- | paths=( ["gnome"]="doc:environnements:gnome" ) | ||
- | paths=( ["gnu-r"]="doc:sciences" ) | ||
- | paths=( ["gnustep"]="doc:programmation" ) | ||
- | paths=( ["graphics"]="doc:media" ) | ||
- | paths=( ["hamradio"]="doc:media" ) | ||
- | paths=( ["haskell"]="doc:programmation" ) | ||
- | paths=( ["httpd"]="doc:reseau" ) | ||
- | paths=( ["interpreters"]="doc:programmation" ) | ||
- | paths=( ["java"]="doc:programmation" ) | ||
- | paths=( ["kernel"]="doc:systeme" ) | ||
- | paths=( ["kde"]="doc:environnements:kde" ) | ||
- | paths=( ["libdevel"]="doc:programmation" ) | ||
- | paths=( ["libs"]="doc:programmation" ) | ||
- | paths=( ["lisp"]="doc:programmation" ) | ||
- | paths=( ["localization"]="doc:systeme" ) | ||
- | paths=( ["mail"]="doc:reseau" ) | ||
- | paths=( ["math"]="doc:sciences" ) | ||
- | paths=( ["misc"]="doc:autres" ) | ||
- | paths=( ["net"]="doc:reseau" ) | ||
- | paths=( ["news"]="doc:reseau" ) | ||
- | paths=( ["ocaml"]="doc:programmation" ) | ||
- | paths=( ["oldlibs"]="doc:systeme" ) | ||
- | paths=( ["otherosfs"]="doc:systeme" ) | ||
- | paths=( ["perl"]="doc:programmation" ) | ||
- | paths=( ["php"]="doc:programmation" ) | ||
- | paths=( ["python"]="doc:programmation" ) | ||
- | paths=( ["ruby"]="doc:programmation" ) | ||
- | paths=( ["science"]="doc:sciences" ) | ||
- | paths=( ["shells"]="doc:programmation" ) | ||
- | paths=( ["sound"]="doc:media" ) | ||
- | paths=( ["tex"]="doc:sciences" ) | ||
- | paths=( ["text"]="doc:editeurs" ) | ||
- | paths=( ["utils"]="doc:systeme" ) | ||
- | paths=( ["video"]="doc:media" ) | ||
- | paths=( ["vcs"]="doc:systeme" ) | ||
- | paths=( ["web"]="doc:reseau" ) | ||
- | paths=( ["x11"]="doc:environnements:x11" ) | ||
- | paths=( ["xfce"]="doc:environnements:xfce" ) | ||
- | paths=( ["zope"]="doc:programmation" ) | ||
- | paths=( ["main"]="doc:" ) | ||
- | paths=( ["contrib"]="doc:" ) | ||
- | paths=( ["non-free"]="doc:" ) | ||
- | paths=( ["non-us"]="doc:" ) | ||
- | NEWPATH="${paths[${SECTION}]}:$APP" | + | paths["unknown"]="doc:autres" |
- | </code> | + | paths["virtual"]="doc:autres" |
+ | paths["tasks"]="doc:" | ||
+ | paths["admin"]="doc:systeme" | ||
+ | paths["alien"]="doc:" | ||
+ | paths["base"]="doc:" | ||
+ | paths["cli-mono"]="doc:programmation" | ||
+ | paths["comm"]="doc:" | ||
+ | paths["database"]="doc:programmation" | ||
+ | paths["debug"]="doc:systeme" | ||
+ | paths["devel"]="doc:programmation" | ||
+ | paths["doc"]="doc:" | ||
+ | paths["editors"]="doc:editeurs" | ||
+ | paths["electronics"]="doc:electronique" | ||
+ | paths["embedded"]="doc:electronique" | ||
+ | paths["fonts"]="doc:media" | ||
+ | paths["games"]="doc:jeux" | ||
+ | paths["gnome"]="doc:environnements:gnome" | ||
+ | paths["gnu-r"]="doc:sciences" | ||
+ | paths["gnustep"]="doc:programmation" | ||
+ | paths["graphics"]="doc:media" | ||
+ | paths["hamradio"]="doc:media" | ||
+ | paths["haskell"]="doc:programmation" | ||
+ | paths["httpd"]="doc:reseau" | ||
+ | paths["interpreters"]="doc:programmation" | ||
+ | paths["java"]="doc:programmation" | ||
+ | paths["kernel"]="doc:systeme" | ||
+ | paths["kde"]="doc:environnements:kde" | ||
+ | paths["libdevel"]="doc:programmation" | ||
+ | paths["libs"]="doc:programmation" | ||
+ | paths["lisp"]="doc:programmation" | ||
+ | paths["localization"]="doc:systeme" | ||
+ | paths["mail"]="doc:reseau" | ||
+ | paths["math"]="doc:sciences" | ||
+ | paths["misc"]="doc:autres" | ||
+ | paths["net"]="doc:reseau" | ||
+ | paths["news"]="doc:reseau" | ||
+ | paths["ocaml"]="doc:programmation" | ||
+ | paths["oldlibs"]="doc:systeme" | ||
+ | paths["otherosfs"]="doc:systeme" | ||
+ | paths["perl"]="doc:programmation" | ||
+ | paths["php"]="doc:programmation" | ||
+ | paths["python"]="doc:programmation" | ||
+ | paths["ruby"]="doc:programmation" | ||
+ | paths["science"]="doc:sciences" | ||
+ | paths["shells"]="doc:programmation" | ||
+ | paths["sound"]="doc:media" | ||
+ | paths["tex"]="doc:sciences" | ||
+ | paths["text"]="doc:editeurs" | ||
+ | paths["utils"]="doc:systeme" | ||
+ | paths["video"]="doc:media" | ||
+ | paths["vcs"]="doc:systeme" | ||
+ | paths["web"]="doc:reseau" | ||
+ | paths["x11"]="doc:environnements:x11" | ||
+ | paths["xfce"]="doc:environnements:xfce" | ||
+ | paths["zope"]="doc:programmation" | ||
+ | paths["main"]="doc:" | ||
+ | paths["contrib"]="doc:" | ||
+ | paths["non-free"]="doc:" | ||
+ | paths["non-us"]="doc:" | ||
+ | |||
+ | NEWPATH=${paths[${SECTION}]}":"$APP | ||
+ | |||
+ | echo "Page=$APP Paquet=$PACKAGE Section=$SECTION NouveauNom=$NEWPATH"</code> |