update build script

pull/40/head
TomasM 2017-12-12 09:27:19 -05:00
parent 08bbab7ce9
commit d79a197683
1 changed files with 14 additions and 7 deletions

View File

@ -1,28 +1,35 @@
#!/bin/bash #!/bin/bash
# This script will update the file ../bootfiles/isolinux.bin to match # This script will update the file ../bootfiles/isolinux.bin to match
# your LiveKit name used in ../config # your LiveKit name
# #
# Requires: Debian # Requires: Debian
# #
set -e set -e
CWD=$(pwd) CWD=$(pwd)
echo
echo "--------------------------------------"
echo "Add directory to isolinux search paths"
echo -n "(for example /slax/boot): "
read DIR
# download, unpack, and patch syslinux # download, unpack, and patch syslinux
apt-get build-dep syslinux apt-get build-dep syslinux
mkdir -m 0777 /tmp/syslinux mkdir -m 0777 /tmp/syslinux
cd /tmp/syslinux cd /tmp/syslinux
apt-get source syslinux apt-get source syslinux
cd syslinux*/core/fs cd syslinux*/core
. $CWD/../config for file in fs/iso9660/iso9660.c fs/lib/loadconfig.c elflink/load_env32.c; do
sed -i -r 's:"/",:"'$DIR'",\n\t"/",:' $file
done
sed -i -r "s:/boot/syslinux:/$LIVEKITNAME/boot:" iso9660/iso9660.c cd ../
sed -i -r "s:/boot/syslinux:/$LIVEKITNAME/boot:" lib/loadconfig.c
cd ../../
make -j 8 make -j 8