aboutsummaryrefslogtreecommitdiff
path: root/cbt
diff options
context:
space:
mode:
authorChristopher Vogt <oss.nsp@cvogt.org>2016-03-07 01:36:40 -0500
committerChristopher Vogt <oss.nsp@cvogt.org>2016-03-07 01:36:40 -0500
commite958dec0dbbcf7f7a28cd21641e76390fb3dba6a (patch)
treeec0933e230b0c3f222fceb82b3eec177d56ea979 /cbt
parentf0dc760df8757caea1d83b15142a3d0704488636 (diff)
downloadcbt-e958dec0dbbcf7f7a28cd21641e76390fb3dba6a.tar.gz
cbt-e958dec0dbbcf7f7a28cd21641e76390fb3dba6a.tar.bz2
cbt-e958dec0dbbcf7f7a28cd21641e76390fb3dba6a.zip
cleanup: whitespace changes, separated more things into their own files, use ++ for strings everywhere. Added ++ method to File and URL and use it in many places
Diffstat (limited to 'cbt')
-rwxr-xr-xcbt32
1 files changed, 16 insertions, 16 deletions
diff --git a/cbt b/cbt
index d9f1ac7..e3c7f1c 100755
--- a/cbt
+++ b/cbt
@@ -13,11 +13,11 @@ log () {
msg=$1
enabled=1
while test $# -gt 0; do
- case "$1" in
- "-Dlog=time") enabled=0 ;;
- "-Dlog=all") enabled=0 ;;
- esac
- shift
+ case "$1" in
+ "-Dlog=time") enabled=0 ;;
+ "-Dlog=all") enabled=0 ;;
+ esac
+ shift
done
if [ $enabled -eq 0 ]; then
which gdate 2>&1 > /dev/null
@@ -89,17 +89,17 @@ nailgun_out=$NAILGUN/target/nailgun.stdout.log
nailgun_err=$NAILGUN/target/nailgun.strerr.log
foo(){
while test $# -gt 0; do
- case "$1" in
- "-Dlog=nailgun")
+ case "$1" in
+ "-Dlog=nailgun")
nailgun_out=/dev/stderr
nailgun_err=/dev/stderr
- ;;
- "-Dlog=all")
+ ;;
+ "-Dlog=all")
nailgun_out=/dev/stderr
nailgun_err=/dev/stderr
- ;;
- esac
- shift
+ ;;
+ esac
+ shift
done
}
@@ -147,11 +147,11 @@ SCALAC="java -Xmx256M -Xms32M\
-deprecation\
-feature"
-stage1 () {
+stage1 () {
log "Checking for changes in cbt/nailgun_launcher" $*
NAILGUN_INDICATOR=$NAILGUN$TARGET/cbt/NailgunLauncher.class
changed=0
- for file in `ls $NAILGUN/*.java`; do
+ for file in `ls $NAILGUN/*.java`; do
if [ $file -nt $NAILGUN_INDICATOR ]; then changed=1; fi
done
compiles=0
@@ -175,7 +175,7 @@ stage1 () {
log "Checking for changes in cbt/stage1" $*
STAGE1_INDICATOR=$STAGE1$TARGET/cbt/Stage1.class
changed2=0
- for file in `ls $STAGE1*.scala`; do
+ for file in `ls $STAGE1*.scala`; do
if [ $file -nt $STAGE1_INDICATOR ]; then changed2=1; fi
done
compiles2=0
@@ -229,7 +229,7 @@ stage1 () {
fi
exitCode=$?
log "Done running $mainClass." $*
-}
+}
while true; do
stage1 $*