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
}
nol_insert && !nol_inserted && /NOL_INSERT/ {
- if ($1 > nol_compare) {
- print nol_string;
+ if ($1 >= nol_compare) {
+ if ($1 > nol_compare)
+ print nol_string;
nol_inserted = 1;
}
}
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