Instructions for Patching - Linux
GeoffR, I did what you said and it opened in Mousepad with the following text:
#!/bin/sh
FIRMWARE_VERSION=3.19.5761
SOURCE_DIR=${FIRMWARE_VERSION}_source
TARGET_DIR=${FIRMWARE_VERSION}_target
KOBO_FIRMWARE=$SOURCE_DIR/kobo-update-$FIRMWARE_VERSION.zip
PATCH32LSB_SRC=tools/patch32lsb.c
PATCH32LSB_BIN=tools/patch32lsb
STAT="stat -c %a"
set -e
FILES_TO_PATCH=""
for F in $SOURCE_DIR/*.patch; do
FILES_TO_PATCH="$FILES_TO_PATCH ./usr/local/Kobo/`basename $F .patch`";
done
case `uname -s` in
Darwin)
PATCH32LSB_BIN=tools/patch32lsb-Darwin
STAT="stat -f %Lp"
;;
Linux)
case `uname -m` in
i?86)
PATCH32LSB_BIN=tools/patch32lsb-i386-Linux
;;
x86_64)
PATCH32LSB_BIN=tools/patch32lsb-x86_64-Linux
;;
esac
STAT="stat -c %a"
;;
esac
SCRATCH=`mktemp -d -t patch32lsb_XXXXXXXX`
trap 'echo "Cleaning up $SCRATCH"; rm -r $SCRATCH' EXIT
OLD=$SCRATCH/original; mkdir $OLD
NEW=$SCRATCH/patched; mkdir $NEW
echo "Extracting files to patch from $KOBO_FIRMWARE ..."
unzip -p $KOBO_FIRMWARE KoboRoot.tgz | tar xvz --directory=$OLD $FILES_TO_PATCH
for F in $FILES_TO_PATCH; do
mkdir -p `dirname $NEW/$F`;
$PATCH32LSB_BIN -p $SOURCE_DIR/`basename $F`.patch -i $OLD/$F -o $NEW/$F;
chmod `$STAT $OLD/$F` $NEW/$F;
done
echo "Creating KoboRoot.tgz ..."
rm -rf $TARGET_DIR
mkdir -p $TARGET_DIR
tar cvzf $TARGET_DIR/KoboRoot.tgz --directory=$NEW $FILES_TO_PATCH
Is it supposed to open in Mousepad like this?
"5. If there were no errors, copy the resulting KoboRoot.tgz from the 3.19.5761_target/ subdirectory to the .kobo directory on your ereader."
I can't find the KoboRoot.tgz or the 3.19.5761_target/subdirectory...where is it located?
Thanks again for your help :-)
|