diff options
author | twogee <g.grigelionis@gmail.com> | 2017-12-19 17:32:34 +0100 |
---|---|---|
committer | twogee <g.grigelionis@gmail.com> | 2017-12-19 17:32:34 +0100 |
commit | b4b82c4588ef195fccd4bca2fc5d032c867bfc10 (patch) | |
tree | 2c160fe5546ea13c99894c871c55694094a26003 /src/script | |
parent | a79d27597a0f1fa949048ed3ce3372bb9a328412 (diff) | |
download | ant-b4b82c4588ef195fccd4bca2fc5d032c867bfc10.tar.gz |
whitespace adjustment in scripts
Diffstat (limited to 'src/script')
-rw-r--r-- | src/script/ant | 34 | ||||
-rw-r--r-- | src/script/complete-ant-cmd.pl | 2 | ||||
-rw-r--r-- | src/script/runant.pl | 2 |
3 files changed, 19 insertions, 19 deletions
diff --git a/src/script/ant b/src/script/ant index a0ca99a87..a15026b9b 100644 --- a/src/script/ant +++ b/src/script/ant @@ -27,7 +27,7 @@ if [ -z "$PROTECT_NL" ]; then os=`uname -s` rel=`uname -r` # heirloom bourne-shell used by Solaris 10 is not POSIX - # it lacks features necessary to protect trailing NL from subshell trimming + # it lacks features necessary to protect trailing NL from subshell trimming if [ "$os" = SunOS -a "$rel" = "5.10" ]; then PROTECT_NL=false fi @@ -40,11 +40,11 @@ for arg in "$@"; do use_jikes_default=true elif [ "$arg" = "--execdebug" ]; then ant_exec_debug=true - elif [ my"$arg" = my"--h" -o my"$arg" = my"--help" ]; then + elif [ my"$arg" = my"--h" -o my"$arg" = my"--help" ]; then show_help=true ant_exec_args="$ant_exec_args -h" else - if [ my"$arg" = my"-h" -o my"$arg" = my"-help" ]; then + if [ my"$arg" = my"-h" -o my"$arg" = my"-help" ]; then show_help=true fi @@ -69,9 +69,9 @@ for arg in "$@"; do quoted_arg="\"$esc_arg\"" if $ant_exec_debug; then - # using printf to avoid echo line continuation and escape interpretation - printf "arg : %s\n" "$arg" - printf "quoted_arg: %s\n" "$quoted_arg" + # using printf to avoid echo line continuation and escape interpretation + printf "arg : %s\n" "$arg" + printf "quoted_arg: %s\n" "$quoted_arg" fi ant_exec_args="$ant_exec_args $quoted_arg" fi @@ -84,9 +84,9 @@ if $no_config; then else # load system-wide ant configuration (ONLY if ANT_HOME has NOT been set) if [ -z "$ANT_HOME" -o "$ANT_HOME" = "/usr/share/ant" ]; then - if [ -f "/etc/ant.conf" ]; then - . /etc/ant.conf - fi + if [ -f "/etc/ant.conf" ]; then + . /etc/ant.conf + fi fi # load user ant configuration @@ -133,9 +133,9 @@ case "`uname`" in fi fi ;; - MINGW*) - mingw=true - ;; + MINGW*) + mingw=true + ;; esac if [ -z "$ANT_HOME" -o ! -d "$ANT_HOME" ]; then @@ -187,7 +187,7 @@ if [ -z "$JAVACMD" ]; then else JAVACMD=`which java 2> /dev/null ` if [ -z "$JAVACMD" ]; then - JAVACMD=java + JAVACMD=java fi fi fi @@ -264,9 +264,9 @@ if $rpm_mode && [ -x /usr/bin/build-classpath ]; then else # not using rpm_mode; use launcher to determine classpaths if [ -z "$LOCALCLASSPATH" ]; then - LOCALCLASSPATH=$ANT_LIB/ant-launcher.jar + LOCALCLASSPATH=$ANT_LIB/ant-launcher.jar else - LOCALCLASSPATH=$ANT_LIB/ant-launcher.jar:$LOCALCLASSPATH + LOCALCLASSPATH=$ANT_LIB/ant-launcher.jar:$LOCALCLASSPATH fi fi @@ -368,8 +368,8 @@ else fi ant_exec_command="exec \"\$JAVACMD\" $ANT_OPTS -classpath \"\$LOCALCLASSPATH\" -Dant.home=\"\$ANT_HOME\" -Dant.library.dir=\"\$ANT_LIB\" $ant_sys_opts org.apache.tools.ant.launch.Launcher $ANT_ARGS -cp \"\$CLASSPATH\"" if $ant_exec_debug; then - # using printf to avoid echo line continuation and escape interpretation confusion - printf "%s\n" "$ant_exec_command $ant_exec_args" + # using printf to avoid echo line continuation and escape interpretation confusion + printf "%s\n" "$ant_exec_command $ant_exec_args" fi eval "$ant_exec_command $ant_exec_args" diff --git a/src/script/complete-ant-cmd.pl b/src/script/complete-ant-cmd.pl index c1b7ba120..47e3c0eee 100644 --- a/src/script/complete-ant-cmd.pl +++ b/src/script/complete-ant-cmd.pl @@ -83,7 +83,7 @@ sub getTargets { my $cacheFile = $buildFile; $cacheFile =~ s|(.*/)?(.*)|${1}.ant-targets-${2}|; if ((!-e $cacheFile) || (-z $cacheFile) || (-M $buildFile) < (-M $cacheFile)) { - open(CACHE, '>'.$cacheFile) || die "can\'t write $cacheFile: $!\n"; + open(CACHE, '>' . $cacheFile) || die "can\'t write $cacheFile: $!\n"; open(HELP, "$antCmd -projecthelp -debug -buildfile '$buildFile'|") || return(); my %targets; while (<HELP>) { diff --git a/src/script/runant.pl b/src/script/runant.pl index 5b9a31f2b..b6c72e9f8 100644 --- a/src/script/runant.pl +++ b/src/script/runant.pl @@ -70,7 +70,7 @@ my $oncygwin = ($^O eq "cygwin"); #here I assume ":" 'cept on win32, dos, and netware. Add extra tests here as needed. my $s = ":"; if (($^O eq "MSWin32") || ($^O eq "dos") || $oncygwin || $onnetware) { - $s=";"; + $s = ";"; } #build up standard classpath |