This is an automated email from the git hooks/post-receive script. tmancill pushed a commit to branch master in repository javatools.
commit c9145daef28ca576a2ad982e95f5dbdc1ed6c795 Author: tony mancill <[email protected]> Date: Sat Oct 17 15:53:11 2015 -0700 use whitespace consistently in jh_lib.sh.in --- jh_lib.sh.in | 82 ++++++++++++++++++++++++++++++------------------------------ 1 file changed, 41 insertions(+), 41 deletions(-) diff --git a/jh_lib.sh.in b/jh_lib.sh.in index 300f807..aead979 100644 --- a/jh_lib.sh.in +++ b/jh_lib.sh.in @@ -10,7 +10,7 @@ parseargs() { ARGC=0 ARGV=() - debhelper= + debhelper= while [ -n "$1" ]; do ignore=no arg="$1" @@ -24,8 +24,8 @@ parseargs() elif [ "-h" = "$arg" ] || [ "--help" = "$arg" ]; then syntax elif [ "--with" = "$arg" ]; then - debhelper=true - shift + debhelper=true + shift elif [ "-" = "${arg:1:1}" ]; then # long opt optn="`sed 's/^--\([^=]*\)\(=.*\)*$/\1/;s/-/_/g' <<< $arg`" @@ -39,12 +39,12 @@ parseargs() if [ -z "$optv" ]; then optv=true fi - optname="opt_$optn" - if [ -n "${!optname}" ]; then - export opt_$optn="${!optname} $optv" - else - export opt_$optn="$optv" - fi + optname="opt_$optn" + if [ -n "${!optname}" ]; then + export opt_$optn="${!optname} $optv" + else + export opt_$optn="$optv" + fi elif [ "-" = "${arg:0:1}" ]; then # short opt optn="${arg:1:1}" @@ -58,12 +58,12 @@ parseargs() if [ -z "$optv" ]; then optv=true fi - optname="opt_$optn" - if [ -n "${!optname}" ]; then - export opt_$optn="${!optname} $optv" - else - export opt_$optn="$optv" - fi + optname="opt_$optn" + if [ -n "${!optname}" ]; then + export opt_$optn="${!optname} $optv" + else + export opt_$optn="$optv" + fi else # not-opt arg ARGV[$ARGC]="$arg" @@ -72,10 +72,10 @@ parseargs() shift done - # treat DH_VERBOSE being set as a -v flag - if [ -n "$DH_VERBOSE" ]; then - export opt_v="true" - fi + # treat DH_VERBOSE being set as a -v flag + if [ -n "$DH_VERBOSE" ]; then + export opt_v="true" + fi export ARGC export ARGV @@ -115,26 +115,26 @@ getarg() # extractline <manifestfile> <key> extractline() { - count=`wc -l < "$1"` - inkey= - value= - i=1 - while (( $i <= $count )); - do - line="`head -n$i "$1" | tail -n1 | sed -e 's/\r//'`" - if [ -n "$inkey" ]; then - if [ "${line:0:1}" == " " ]; then - value="$value${line:1}" - else - break - fi - else - if echo "$line" | grep "^$2:" > /dev/null; then - inkey=true - value="`sed 's/^[^:]*: *//' <<< $line`" - fi - fi - i=$(( $i + 1 )) - done - echo $value + count=`wc -l < "$1"` + inkey= + value= + i=1 + while (( $i <= $count )); + do + line="`head -n$i "$1" | tail -n1 | sed -e 's/\r//'`" + if [ -n "$inkey" ]; then + if [ "${line:0:1}" == " " ]; then + value="$value${line:1}" + else + break + fi + else + if echo "$line" | grep "^$2:" > /dev/null; then + inkey=true + value="`sed 's/^[^:]*: *//' <<< $line`" + fi + fi + i=$(( $i + 1 )) + done + echo $value } -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/javatools.git _______________________________________________ pkg-java-commits mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-commits

