- use variable for fakeroot script
This commit is contained in:
Stephan Raue 2010-01-15 08:16:29 +01:00
parent 10d2c15182
commit 2627208462

View File

@ -20,10 +20,10 @@ case "$2" in
export INSTALL=$BUILD/$1/$2
rm -rf $ROOT/.fakeroot.$PROJECT # remove /.fakeroot if it exist
touch $ROOT/.fakeroot.$PROJECT # create an empty /.fakeroot
chmod +x $ROOT/.fakeroot.$PROJECT # make /.fakeroot executable
echo "chown -R 0:0 $INSTALL" >> $ROOT/.fakeroot.$PROJECT
rm -rf $FAKEROOT_SCRIPT # remove $FAKEROOT_SCRIPT if it exist
touch $FAKEROOT_SCRIPT # create an empty $FAKEROOT_SCRIPT
chmod +x $FAKEROOT_SCRIPT # make $FAKEROOT_SCRIPT executable
echo "chown -R 0:0 $INSTALL" >> $FAKEROOT_SCRIPT
rm -rf $INSTALL
mkdir -p $INSTALL
@ -83,11 +83,11 @@ case "$2" in
rm -rf $ROOT/target/OpenELEC-$TARGET_VERSION.kernel
cp -PR $BUILD/linux-*/arch/x86/boot/bzImage $ROOT/target/OpenELEC-$TARGET_VERSION.kernel
echo "rm -rf $ROOT/target/OpenELEC-$TARGET_VERSION.system" >> $ROOT/.fakeroot.$PROJECT
echo "$ROOT/$TOOLCHAIN/bin/mksquashfs $INSTALL $ROOT/target/OpenELEC-$TARGET_VERSION.system -noappend -comp lzma" >> $ROOT/.fakeroot.$PROJECT
$ROOT/$TOOLCHAIN/bin/fakeroot -- $ROOT/.fakeroot.$PROJECT
echo "rm -rf $ROOT/target/OpenELEC-$TARGET_VERSION.system" >> $FAKEROOT_SCRIPT
echo "$ROOT/$TOOLCHAIN/bin/mksquashfs $INSTALL $ROOT/target/OpenELEC-$TARGET_VERSION.system -noappend -comp lzma" >> $FAKEROOT_SCRIPT
$ROOT/$TOOLCHAIN/bin/fakeroot -- $FAKEROOT_SCRIPT
chmod 0644 $ROOT/target/OpenELEC-$TARGET_VERSION.system
rm -rf $ROOT/.fakeroot.$PROJECT
rm -rf $FAKEROOT_SCRIPT
;;
release)