Mercurial > hg > aboriginal
diff mini-native.sh @ 675:4571f63c2298
Add SKIP_STAGE_TARBALLS config option to skip creating tarballs after each stage.
author | Rob Landley <rob@landley.net> |
---|---|
date | Mon, 30 Mar 2009 01:11:34 -0500 |
parents | 1cf41855bb85 |
children | 90ab1a1f4db5 |
line wrap: on
line diff
--- a/mini-native.sh Sun Mar 29 23:30:29 2009 -0500 +++ b/mini-native.sh Mon Mar 30 01:11:34 2009 -0500 @@ -302,19 +302,22 @@ "${ARCH}-strip" "${TOOLS}"/{bin/*,sbin/*,libexec/gcc/*/*/*} "${ARCH}-strip" --strip-unneeded "${TOOLS}"/lib/*.so -echo -n creating mini-native-"${ARCH}".tar.bz2 && -cd "${BUILD}" && -{ tar cjvf "mini-native-${ARCH}.tar.bz2" "mini-native-${ARCH}" || dienow -} | dotprogress - -# If we're building something with a $BASE_ARCH, symlink to actual target name. +if [ -z "$SKIP_STAGE_TARBALLS" ] +then + echo -n creating mini-native-"${ARCH}".tar.bz2 && + cd "${BUILD}" && + { tar cjvf "mini-native-${ARCH}.tar.bz2" "mini-native-${ARCH}" || dienow + } | dotprogress -if [ "$ARCH" != "$ARCH_NAME" ] -then - rm -rf "mini-native-$ARCH_NAME"{,.tar.bz2} && - ln -s mini-native-"$ARCH" mini-native-"$ARCH_NAME" && - ln -s mini-native-"$ARCH".tar.bz2 mini-native-"$ARCH_NAME".tar.bz2 || - dienow + # If we're building something with a $BASE_ARCH, symlink to target name. + + if [ "$ARCH" != "$ARCH_NAME" ] + then + rm -rf "mini-native-$ARCH_NAME"{,.tar.bz2} && + ln -s mini-native-"$ARCH" mini-native-"$ARCH_NAME" && + ln -s mini-native-"$ARCH".tar.bz2 mini-native-"$ARCH_NAME".tar.bz2 || + dienow + fi fi