Mercurial > hg > aboriginal
view root-filesystem.sh @ 1144:319327a27998
Add cross-compiler.sh back. (If you rename a file and add an old one in the same commit, mercurial gets confused. Also, mercurial doesn't consider "this file was deleted" something worth showing in log -v, so figuring out what happened is an exercise in frustration. Obviously deleting a file is not an important part of its history...)
author | Rob Landley <rob@landley.net> |
---|---|
date | Sun, 27 Jun 2010 21:00:55 -0500 |
parents | 2b7100b7de0c |
children | 78e786334c5b |
line wrap: on
line source
#!/bin/bash # Combine the output of simple-root-filesystem and native-compiler. . sources/include.sh || exit 1 read_arch_dir "$1" [ ! -d "$BUILD/simple-root-filesystem-$ARCH" ] && echo "No $BUILD/simple-root-filesystem-$ARCH" >&2 && exit 1 [ ! -d "$BUILD/native-compiler-$ARCH" ] && echo "No $BUILD/native-compiler-$ARCH" >&2 && exit 1 cp -a "$BUILD/simple-root-filesystem-$ARCH/." "$STAGE_DIR" || dienow # Remove shared libraries copied from cross compiler. rm -rf "$BUILD/root-filesystem-$ARCH/usr/lib" 2>/dev/null # Copy native compiler, but do not overwrite existing files (which could # do bad things to busybox). [ -z "$ROOT_NODIRS" ] && USRDIR="/usr" || USRDIR="" yes 'n' | cp -ia "$BUILD/native-compiler-$ARCH/." \ "$BUILD/root-filesystem-$ARCH$USRDIR" 2>/dev/null || dienow create_stage_tarball