Mercurial > hg > aboriginal
comparison 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 |
comparison
equal
deleted
inserted
replaced
674:133eca1561b9 | 675:4571f63c2298 |
---|---|
300 # Clean up and package the result | 300 # Clean up and package the result |
301 | 301 |
302 "${ARCH}-strip" "${TOOLS}"/{bin/*,sbin/*,libexec/gcc/*/*/*} | 302 "${ARCH}-strip" "${TOOLS}"/{bin/*,sbin/*,libexec/gcc/*/*/*} |
303 "${ARCH}-strip" --strip-unneeded "${TOOLS}"/lib/*.so | 303 "${ARCH}-strip" --strip-unneeded "${TOOLS}"/lib/*.so |
304 | 304 |
305 echo -n creating mini-native-"${ARCH}".tar.bz2 && | 305 if [ -z "$SKIP_STAGE_TARBALLS" ] |
306 cd "${BUILD}" && | 306 then |
307 { tar cjvf "mini-native-${ARCH}.tar.bz2" "mini-native-${ARCH}" || dienow | 307 echo -n creating mini-native-"${ARCH}".tar.bz2 && |
308 } | dotprogress | 308 cd "${BUILD}" && |
309 | 309 { tar cjvf "mini-native-${ARCH}.tar.bz2" "mini-native-${ARCH}" || dienow |
310 # If we're building something with a $BASE_ARCH, symlink to actual target name. | 310 } | dotprogress |
311 | 311 |
312 if [ "$ARCH" != "$ARCH_NAME" ] | 312 # If we're building something with a $BASE_ARCH, symlink to target name. |
313 then | 313 |
314 rm -rf "mini-native-$ARCH_NAME"{,.tar.bz2} && | 314 if [ "$ARCH" != "$ARCH_NAME" ] |
315 ln -s mini-native-"$ARCH" mini-native-"$ARCH_NAME" && | 315 then |
316 ln -s mini-native-"$ARCH".tar.bz2 mini-native-"$ARCH_NAME".tar.bz2 || | 316 rm -rf "mini-native-$ARCH_NAME"{,.tar.bz2} && |
317 dienow | 317 ln -s mini-native-"$ARCH" mini-native-"$ARCH_NAME" && |
318 ln -s mini-native-"$ARCH".tar.bz2 mini-native-"$ARCH_NAME".tar.bz2 || | |
319 dienow | |
320 fi | |
318 fi | 321 fi |
319 | 322 |
320 | 323 |
321 # Color back to normal | 324 # Color back to normal |
322 echo -e "\e[0mBuild complete" | 325 echo -e "\e[0mBuild complete" |