75 lines
2.2 KiB
Bash
75 lines
2.2 KiB
Bash
# -*- coding: utf-8 mode: sh -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8
|
|
|
|
source "$@" || exit 1
|
|
source "$ULIBDIR/ulib" || exit 1
|
|
urequire DEFAULTS uenv uenv_update
|
|
cd "$scriptdir/../.."
|
|
|
|
# supprimer les fichiers de VCS
|
|
rm -rf .git
|
|
|
|
# supprimer le marqueur d'un répertoire non déployé
|
|
rm -f .nutools-devel
|
|
|
|
# supprimer fichiers de développement
|
|
rm -rf lib/pyulib/{build,devel,migrate,test}
|
|
|
|
# liens pour les scripts python
|
|
for i in plver plbck uencdetect urandomize umail uxpath wofixsql; do
|
|
ln -s lib/pywrapper "$i"
|
|
done
|
|
ln -s lib/ulib/support/cgiupload.py
|
|
ln -s lib/ulib/support/cgilsxml.py
|
|
|
|
# liens pour les scripts shell
|
|
for i in cg cgs; do
|
|
ln -s compileAndGo "$i"
|
|
done
|
|
./uproject --nutools-makelinks
|
|
./woctl --nutools-makelinks
|
|
#./dokuwiki --nutools-makelinks
|
|
#./mediawiki --nutools-makelinks
|
|
./uawk --nutools-makelinks
|
|
./udist --nutools-makelinks
|
|
./ulink --nutools-makelinks
|
|
./doinplace --nutools-makelinks
|
|
|
|
# complétion programmable
|
|
rm -f ~/etc/bashrc.d/bash_completion.nutools # renommé
|
|
mkdir -p ~/etc/completion.d
|
|
bcdir=lib/completion.d
|
|
./pdev --nutools-completion >"$bcdir/pdev"
|
|
./prel --nutools-completion >"$bcdir/prel"
|
|
#./pfix --nutools-completion >"$bcdir/pfix"
|
|
|
|
# copier le fichier .nutoolsrc
|
|
[ -f ~/.nutoolsrc ] || cp lib/nutoolsrc ~/.nutoolsrc
|
|
if ! quietgrep UTOOLS_LOCAL_PROFILES= ~/.nutoolsrc; then
|
|
echo "
|
|
# Type d'installation pour les profils
|
|
#export UTOOLS_LOCAL_PROFILES=" >>~/.nutoolsrc
|
|
fi
|
|
if [ "$UINST_LOCAL_PROFILES" != auto ]; then
|
|
sedi "/UTOOLS_LOCAL_PROFILES=/c\\
|
|
export UTOOLS_LOCAL_PROFILES=$(qvalr "$UINST_LOCAL_PROFILES")" ~/.nutoolsrc
|
|
fi
|
|
|
|
# identification du système
|
|
echo "##@before *" >lib/profile.d/0nutools
|
|
set_var_cmd UNAME_SYSTEM "$UNAME_SYSTEM" >>lib/profile.d/0nutools
|
|
set_var_cmd UNAME_MACHINE "$UNAME_MACHINE" >>lib/profile.d/0nutools
|
|
|
|
# installer les profils
|
|
destdir="@@dest@@"
|
|
is_yes "$install_profiles" && uenv_configure_profiles "$destdir"
|
|
|
|
if [ -d "profile.d" ]; then
|
|
estep "Mise à jour de l'ordre de lecture de $(ppath "$destdir/profile.d")"
|
|
uenv_update_dir profile.d "" "$destdir/profile.d"
|
|
fi
|
|
|
|
if [ -d "bashrc.d" ]; then
|
|
estep "Mise à jour de l'ordre de lecture de $(ppath "$destdir/bashrc.d")"
|
|
uenv_update_dir bashrc.d "" "$destdir/bashrc.d"
|
|
fi
|