Skip to content

Commit

Permalink
Redirect ugly pushd and popd dir stack prints to /dev/null.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonne Nauha committed Jun 17, 2012
1 parent 9fe1f72 commit 0b4a431
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 16 deletions.
6 changes: 2 additions & 4 deletions build-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,7 @@ echo "-- Install prefix = ${PREFIX}"
echo "-- CMake toolchain = $PREFAB/android.toolchain.cmake"
echo

pushd $SRCDIR
echo
pushd $SRCDIR >> /dev/null

if [ "${INPUT_SKIP_DEPS}" == "FALSE" ] ; then
${TOPDIR}/build-bzip2.sh
Expand All @@ -190,8 +189,7 @@ else
echo -e "${COLOR_BLUE}Skipping Tundra build by request${COLOR_END}"
fi

popd
echo
popd >> /dev/null

if [ "${INPUT_SKIP_ANDROID}" == "FALSE" ] ; then
${TOPDIR}/build-tundra-android.sh
Expand Down
4 changes: 2 additions & 2 deletions build-boost.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ else
echo "-- ${BOOST_SOURCE_NAME}.tar.gz already downloaded and extracted, skipping."
fi

pushd "${BOOST_SOURCE_NAME}"
pushd "${BOOST_SOURCE_NAME}" >> /dev/null

# Make the initial bootstrap
if [ ! -f ./b2 ] ; then
Expand Down Expand Up @@ -160,6 +160,6 @@ else
echo "-- Already built, remove ${DETECTION_LIB} to trigger a rebuild."
fi

popd
popd >> /dev/null
echo

2 changes: 1 addition & 1 deletion build-bullet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ if [ ! -f ${DETECTION_LIB} ] ; then
make -j4
make install

popd
popd >> /dev/null
else
echo "-- Already built, remove ${DETECTION_LIB} to trigger a rebuild."
fi
Expand Down
2 changes: 1 addition & 1 deletion build-bzip2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ if [ ! -f ${DETECTION_LIB} ] ; then
make CC="${CC}" AR="${AR}" RANLIB="${RANLIB}" CFLAGS="${CFLAGS}"
make install PREFIX=${PREFIX} # Ignore errors due to share libraries missing

popd
popd >> /dev/null
else
echo "-- Already built, remove ${DETECTION_LIB} to trigger a rebuild."
fi
Expand Down
2 changes: 1 addition & 1 deletion build-knet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ if [ ! -f ${DETECTION_LIB} ] ; then
cp -u lib/libkNet.a ${PREFIX}/lib/
cp -u -r include/* ${PREFIX}/include/

popd
popd >> /dev/null
else
echo "-- Already built, remove ${DETECTION_LIB} to trigger a rebuild."
fi
Expand Down
2 changes: 1 addition & 1 deletion build-ogre.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ if [ ! -f ${DETECTION_LIB} ] ; then
cp -u ${PREBUILT}/lib/* ${PREFIX}/lib/
cp -u -r ${PREBUILT}/include/* ${PREFIX}/include/

popd
popd >> /dev/null
else
echo "-- Already built, remove ${DETECTION_LIB} to trigger a rebuild."
fi
Expand Down
4 changes: 2 additions & 2 deletions build-qt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ else
echo "-- Repository already cloned, skipping."
fi

pushd "${QT_SOURCE_DIR}"
pushd "${QT_SOURCE_DIR}" >> /dev/null

QT_CONF_ARG="0"
if [ ! -f android/tundra.qt.configured ] ; then
Expand Down Expand Up @@ -58,6 +58,6 @@ else
echo " cd src/qt && git clean -fdx && git checkout ./ && rm ${DETECTION_LIB}"
fi

popd
popd >> /dev/null
echo

4 changes: 2 additions & 2 deletions build-tundra-android.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ echo -e "${COLOR_GREEN}Building and packaging tundra for android${COLOR_END}"

TUNDRA_ANDROID_SOURCE_DIR=build-android

pushd "${TUNDRA_ANDROID_SOURCE_DIR}"
pushd "${TUNDRA_ANDROID_SOURCE_DIR}" >> /dev/null

# Set clean path for only NDK/SDK
PATH_OLD=$PATH
Expand All @@ -29,6 +29,6 @@ adb install -r bin/Tundra-debug.apk
# Restore old path
export PATH=${PATH_OLD}

popd
popd >> /dev/null
echo

4 changes: 2 additions & 2 deletions build-tundra.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ else
echo -e "${COLOR_BLUE}-- Repository already cloned, skipping.${COLOR_END}"
fi

pushd "${TUNDRA_SOURCE_DIR}"
pushd "${TUNDRA_SOURCE_DIR}" >> /dev/null

export TUNDRA_INSTALL_PATH=$(pwd)/android-install
export TUNDRA_DEP_PATH=${PREFIX}
Expand Down Expand Up @@ -67,6 +67,6 @@ else
echo -e "${COLOR_BLUE}-- 'make install' already done, remove ${TUNDRA_INSTALL_PATH} to reinstall.${COLOR_END}"
fi

popd
popd >> /dev/null
echo

0 comments on commit 0b4a431

Please sign in to comment.