From eee1e5b5311423db865eaf217e594b7b273c50ef Mon Sep 17 00:00:00 2001 From: Jephte CLAIN Date: Wed, 9 Jul 2014 15:10:43 +0400 Subject: [PATCH] =?UTF-8?q?ne=20s=C3=A9lectionner=20lib=20que=20si=20lib/u?= =?UTF-8?q?lib=20ou=20lib/pyulib=20existent?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ulib | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ulib b/ulib index 8bde8d2..3df8a34 100755 --- a/ulib +++ b/ulib @@ -185,7 +185,9 @@ sync) } [ -n "$destdir" ] || destdir="$1" - [ -n "$destdir" ] || { [ -d lib ] && destdir=lib || destdir=.; } + [ -z "$destdir" -a -n "$synculib" -a -d lib/ulib ] && destdir=lib + [ -z "$destdir" -a -n "$syncpyulib" -a -d lib/pyulib ] && destdir=lib + [ -n "$destdir" ] || destdir=. ask_yesno "Voulez-vous copier ${synculib:+ - la librairie ulib}${syncpyulib:+