2013-08-27 15:14:44 +04:00
|
|
|
# -*- coding: utf-8 mode: sh -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8
|
|
|
|
|
|
|
|
source "$@" || exit 1
|
2014-07-07 22:06:38 +04:00
|
|
|
source "$ULIBDIR/ulib" || exit 1
|
|
|
|
urequire DEFAULTS uenv uenv_update
|
2013-08-27 15:14:44 +04:00
|
|
|
cd "$scriptdir/../.."
|
|
|
|
|
2013-12-28 10:47:01 +04:00
|
|
|
# supprimer les fichiers de VCS
|
|
|
|
rm -rf .git
|
|
|
|
|
|
|
|
# supprimer le marqueur d'un répertoire non déployé
|
|
|
|
rm -f .nutools-devel
|
|
|
|
|
2013-08-27 15:14:44 +04:00
|
|
|
# supprimer fichiers de développement
|
2014-07-07 22:06:38 +04:00
|
|
|
rm -rf lib/pyulib/{build,devel,migrate,test}
|
2013-08-27 15:14:44 +04:00
|
|
|
|
|
|
|
# liens pour les scripts python
|
2013-12-08 03:22:29 +04:00
|
|
|
for i in plver plbck uencdetect urandomize umail uxpath wofixsql; do
|
2013-08-27 15:14:44 +04:00
|
|
|
ln -s lib/pywrapper "$i"
|
|
|
|
done
|
2014-07-07 22:06:38 +04:00
|
|
|
ln -s lib/ulib/support/cgiupload.py
|
2015-12-07 15:22:44 +04:00
|
|
|
ln -s lib/ulib/support/cgilsxml.py
|
2013-08-27 15:14:44 +04:00
|
|
|
|
|
|
|
# liens pour les scripts shell
|
|
|
|
for i in cg cgs; do
|
|
|
|
ln -s compileAndGo "$i"
|
|
|
|
done
|
|
|
|
./uproject --nutools-makelinks
|
|
|
|
./woctl --nutools-makelinks
|
2015-02-19 14:24:13 +04:00
|
|
|
#./dokuwiki --nutools-makelinks
|
|
|
|
#./mediawiki --nutools-makelinks
|
2013-08-27 15:14:44 +04:00
|
|
|
./uawk --nutools-makelinks
|
|
|
|
./udist --nutools-makelinks
|
2015-01-09 11:17:05 +04:00
|
|
|
./ulink --nutools-makelinks
|
2016-03-01 17:04:25 +04:00
|
|
|
./doinplace --nutools-makelinks
|
2013-08-27 15:14:44 +04:00
|
|
|
|
2015-03-18 16:55:12 +04:00
|
|
|
# complétion programmable
|
2015-03-23 05:26:34 +04:00
|
|
|
rm -f ~/etc/bashrc.d/bash_completion.nutools # renommé
|
2015-03-23 05:08:27 +04:00
|
|
|
mkdir -p ~/etc/completion.d
|
|
|
|
bcdir=lib/completion.d
|
2015-03-18 16:55:12 +04:00
|
|
|
./pdev --nutools-completion >"$bcdir/pdev"
|
2015-03-23 07:57:15 +04:00
|
|
|
./prel --nutools-completion >"$bcdir/prel"
|
2015-03-18 16:55:12 +04:00
|
|
|
#./pfix --nutools-completion >"$bcdir/pfix"
|
|
|
|
|
2013-08-27 15:14:44 +04:00
|
|
|
# copier le fichier .nutoolsrc
|
|
|
|
[ -f ~/.nutoolsrc ] || cp lib/nutoolsrc ~/.nutoolsrc
|
2015-07-22 15:04:58 +04:00
|
|
|
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
|
2013-08-27 15:14:44 +04:00
|
|
|
|
|
|
|
# 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
|