
3 Jun
2011
3 Jun
'11
9:24 p.m.
On Friday, June 03, 2011 14:36:03 Matthew McClintock wrote:
+if [ -z "${options}" ] ; then
- options=$EXTRA_OPTS
+else
- options="$options,$EXTRA_OPTS"
+fi
this can be simplified (or at least done in one line) with: options=${options:+${options},}${EXTRA_OPTS}
although i can understand that not everyone can grok that at first blush
+TARGETS+=`echo $EXTRA_OPTS | tr ',' ' '`
you're still using non-portable += append operator
although i dont understand how EXTRA_OPTS can both be extra options and extra targets at the same time ... -mike