support du répertoire ulib dans lib/

This commit is contained in:
Jephté Clain 2014-05-28 15:59:38 +04:00
parent 8a320dbba3
commit d45c4129ef
1 changed files with 10 additions and 2 deletions

View File

@ -131,7 +131,7 @@ Voulez-vous générer un script avec cette configuration?" X &&
-d manual
fi
if [ -z "$type" ]; then
if [ -d "$dir/ulib" ]; then
if [ -d "$dir/ulib" -o -d "$dir/lib/ulib" ]; then
enote "Le type de script 'system-or-local' a été sélectionné automatiquement"
type=system-or-local
elif [ -f /etc/ulibauto ]; then
@ -144,9 +144,17 @@ Voulez-vous générer un script avec cette configuration?" X &&
fi
if [ "$type" == system-or-local ]; then
local ulibdir
if [ -d "$dir/ulib" ]; then
ulibdir=ulib
elif [ -d "$dir/lib/ulib" ]; then
ulibdir=lib/ulib
else
ulibdir=ulib
fi
echo >"$file" '#!/bin/bash
'"$modeline"'
source "$(dirname "$0")/ulib/auto" || exit 1
source "$(dirname "$0")/'"$ulibdir"'/auto" || exit 1
#HELP_DESC="$scriptname: "
#HELP_ARG_DESC=
eval "$(genparse)"