Mercurial > hg > aboriginal
view root-filesystem.sh @ 1118:62e2321619e2
Leftover debris from buildall.sh breakup (1114).
author | Rob Landley <rob@landley.net> |
---|---|
date | Wed, 16 Jun 2010 08:14:27 -0500 |
parents | 2b68517f5b62 |
children | e5f9681a8b3c |
line wrap: on
line source
#!/bin/bash # Combine 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 # 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