Wiki » Historique » Version 6
Version 5 (Lionel Morin, 05/09/2013 16:02) → Version 6/8 (Lionel Morin, 23/10/2013 10:39)
h1. Helper de gestion de packaging EOLE
Cette procédure décrit une installation pour un utilisateur.
Il s’utilise comme la version actuelle l’amélioration notable qu’il y a le complètement automatique des noms de branches pour Bash.
h2. Clone du dépôt
<pre>
user@work:~/src$ git clone http://dev-eole.ac-dijon.fr/git/git-package
</pre>
h2. Ajout Ajour du binaire au PATH:
<pre>
user@work:~/src$ mkdir ~/bin
user@work:~/src$ ln -s ~/src/git-package/git-package ~/bin/
user@work:~/src$ export PATH=~/bin:$PATH
</pre>
h2. Mise en place du complètement automatique Bash
<pre>
user@work:~/src$ mkdir ~/.bash_completion.d/
user@work:~/src$ ln -s ~/src/git-package/git-package-completion.bash ~/.bash_completion.d/git-package
user@work:~/src$ cat >> ~/.bash_completion <<'EOF'
# -*- shell-script -*-
# user completion
USER_BASH_COMPLETION_DIR="${HOME}/.bash_completion.d"
if [[ -d "${USER_BASH_COMPLETION_DIR}" && -r "${USER_BASH_COMPLETION_DIR}" \
&& -x "${USER_BASH_COMPLETION_DIR}" ]]
then
for i in $(LC_ALL=C command ls "${USER_BASH_COMPLETION_DIR}"); do
i="${USER_BASH_COMPLETION_DIR}/$i"
[[ ${i##*/} != @($_backup_glob|Makefile*|$_blacklist_glob) \
&& -f $i && -r $i ]] && . "$i"
done
fi
unset i _blacklist_glob
EOF
</pre>
h2. Source du complètement automatique Bash
<pre>
user@work:~/src$ . ~/.bash_completion
</pre>
h2. Paquet pour Debian like
http://eole.ac-dijon.fr/eole/pool/main/g/git-package/
Cette procédure décrit une installation pour un utilisateur.
Il s’utilise comme la version actuelle l’amélioration notable qu’il y a le complètement automatique des noms de branches pour Bash.
h2. Clone du dépôt
<pre>
user@work:~/src$ git clone http://dev-eole.ac-dijon.fr/git/git-package
</pre>
h2. Ajout Ajour du binaire au PATH:
<pre>
user@work:~/src$ mkdir ~/bin
user@work:~/src$ ln -s ~/src/git-package/git-package ~/bin/
user@work:~/src$ export PATH=~/bin:$PATH
</pre>
h2. Mise en place du complètement automatique Bash
<pre>
user@work:~/src$ mkdir ~/.bash_completion.d/
user@work:~/src$ ln -s ~/src/git-package/git-package-completion.bash ~/.bash_completion.d/git-package
user@work:~/src$ cat >> ~/.bash_completion <<'EOF'
# -*- shell-script -*-
# user completion
USER_BASH_COMPLETION_DIR="${HOME}/.bash_completion.d"
if [[ -d "${USER_BASH_COMPLETION_DIR}" && -r "${USER_BASH_COMPLETION_DIR}" \
&& -x "${USER_BASH_COMPLETION_DIR}" ]]
then
for i in $(LC_ALL=C command ls "${USER_BASH_COMPLETION_DIR}"); do
i="${USER_BASH_COMPLETION_DIR}/$i"
[[ ${i##*/} != @($_backup_glob|Makefile*|$_blacklist_glob) \
&& -f $i && -r $i ]] && . "$i"
done
fi
unset i _blacklist_glob
EOF
</pre>
h2. Source du complètement automatique Bash
<pre>
user@work:~/src$ . ~/.bash_completion
</pre>
h2. Paquet pour Debian like
http://eole.ac-dijon.fr/eole/pool/main/g/git-package/