From 99de52f66bf660d183f7ecfc5f5c68eee92d49d0 Mon Sep 17 00:00:00 2001 From: Benjamin Bohard Date: Tue, 1 Mar 2016 11:44:10 +0100 Subject: [PATCH] =?UTF-8?q?Prise=20en=20compte=20d'un=20argument=20positio?= =?UTF-8?q?nnel=20pour=20restreindre=20la=20recherche=20des=20programmes?= =?UTF-8?q?=20=C3=A0=20compiler=20=C3=A0=20un=20r=C3=A9pertoire?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- programme.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/programme.sh b/programme.sh index a830ba6..fb787e8 100755 --- a/programme.sh +++ b/programme.sh @@ -4,8 +4,14 @@ function path_to_name { PROGRAMPATH=$1 echo ${PROGRAMPATH//\_/\ } } +if [ "$1" = '' ] +then + rep='.' +else + rep="$1" +fi -for directory in $(find . -name programme -type d); do +for directory in $(find "$rep" -name programme -type d); do cat > programme_options.tex <