summaryrefslogtreecommitdiff
path: root/build_test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build_test.sh')
-rwxr-xr-xbuild_test.sh14
1 files changed, 7 insertions, 7 deletions
diff --git a/build_test.sh b/build_test.sh
index e0c090da..63fded82 100755
--- a/build_test.sh
+++ b/build_test.sh
@@ -6,27 +6,27 @@ BUILDDIR=/tmp/aria2buildtest
if [ ! -d "$BUILDDIR" ]; then
mkdir "$BUILDDIR" \
- || { echo "Failed to create directory $BUILDDIR" && exit -1; }
+ || { echo "Failed to create directory $BUILDDIR" && exit 1; }
fi
echo -n "Starting build test "
-echo `date`
+echo "$(date)"
# build CONFIGURE_OPTS BIN_SUFFIX DESC
build()
{
echo -n "new build() started at "
- echo `date`
+ echo "$(date)"
echo "*** configure opts=$1"
BIN_NAME="aria2c_$2"
if [ -f "$BUILDDIR/$BIN_NAME" ]; then
echo "$BIN_NAME exists, skipping"
return
fi
- ./configure $1 2>&1 | tee "$BUILDDIR/configure_$2.log"\
+ ./configure $1 2>&1 | tee "$BUILDDIR/configure_$2.log" \
&& cp config.log "$BUILDDIR/config.log_$2" \
&& LANG=C make clean \
- && LANG=C make -j2 check 2>&1 |tee "$BUILDDIR/aria2c_$2.log" \
+ && LANG=C make -j2 check 2>&1 | tee "$BUILDDIR/aria2c_$2.log" \
&& cp src/aria2c "$BUILDDIR/aria2c_$2"
if [ -f "test/aria2c.log" ]; then
@@ -36,8 +36,8 @@ build()
clear()
{
- for file in `ls $BUILDDIR`; do
- rm -f "$BUILDDIR/$file";
+ for file in $(ls "$BUILDDIR"); do
+ rm -f "$BUILDDIR/$file"
done
}