X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/blobdiff_plain/d568decaa9d3c62d0da2a32d2c636b4ed7fb8063..refs/heads/master:/new_loba.sh?ds=sidebyside diff --git a/new_loba.sh b/new_loba.sh index 40b6ea1..506d38a 100755 --- a/new_loba.sh +++ b/new_loba.sh @@ -25,7 +25,7 @@ EOF fi name=$(echo $1 | tr A-Z a-z) -if ! echo "$name" | grep -q '^[a-z][a-z0-9_]*$' \ +if ! echo "$name" | grep -q '^[a-z0-9_]\+$' \ || ! [ $(echo "$name" | wc -l) = 1 ]; then echo "ERROR: invalid name -- \"$name\"" >&2 exit 1 @@ -153,5 +153,5 @@ Check for differences, update algorithm description in "options.cpp", write your code in "${cpp_file}", and do not forget to add new files in SCM repository, for example with: \$ git add options.cpp ${h_file} ${cpp_file} - \$ git commit -m 'Add algorithm ${name}." + \$ git commit -m 'Add algorithm ${name}.' EOF