Changeset 2797 for scripts/compile-iso.bash
- Timestamp:
- 01/10/08 09:01:12 (5 years ago)
- File:
-
- 1 edited
-
scripts/compile-iso.bash (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
scripts/compile-iso.bash
r2728 r2797 1 1 #!/bin/bash 2 2 # Bash script to compile Parsix ISOs from source 3 # Coyright 2005-200 7Alan Baghumian / GNU/GPL3 # Coyright 2005-2008 Alan Baghumian / GNU/GPL 4 4 5 PUBLISHER="Parsix Project"5 publisher="Parsix Project" 6 6 7 7 if [ -z "${1}" -o -z "${2}" -o -z "${3}" ]; then … … 10 10 fi 11 11 12 if [ "${1}" != "source32" -a "${1}" != "source64" ]; then 13 echo "Invalid root directory." 14 exit 15 fi 16 12 17 if [ "${1}" == "source32" ]; then 13 MASTER="master32"14 DEBDIR="deb32"18 master="master32" 19 debdir="deb32" 15 20 else 16 MASTER="master64"17 DEBDIR="deb64"21 master="master64" 22 debdir="deb64" 18 23 fi 19 24 20 25 for x in ${1}/PARSIX/var/cache/apt/archives/*.deb 21 26 do 22 mv $x ${ DEBDIR}/ &>/dev/null27 mv $x ${debdir}/ &>/dev/null 23 28 done 24 29 25 rm $ MASTER/PARSIX/PARSIX &> /dev/null30 rm ${master}/PARSIX/PARSIX &> /dev/null 26 31 27 32 if [ -f ${1}/PARSIX/root/.bash_history ]; then … … 35 40 36 41 # Refresh RC links 37 rm ${1}/PARSIX/etc/rc*.d/* &>/dev/null42 rm ${1}/PARSIX/etc/rc*.d/* &>/dev/null 38 43 (cd ${1}/PARSIX/etc/rc0.d/ && ln -s ../init.d/live-halt S90live-halt) 39 44 (cd ${1}/PARSIX/etc/rc3.d/ && ln -s ../init.d/pis S05pis) … … 49 54 sed -i s/"Name=Balsa$"/"Name=Balsa Email Client"/g ${1}/PARSIX/usr/share/applications/balsa.desktop &>/dev/null 50 55 sed -i s/"Name=gFTP$"/"Name=Gnome FTP Client"/g ${1}/PARSIX/usr/share/applications/gftp.desktop &>/dev/null 56 sed -i s/"Name=Wammu$"/"Name=Mobile Phone Manager"/g ${1}/PARSIX/usr/share/applications/wammu.desktop &>/dev/null 57 sed -i s/"Categories=Utility;ContactManagement;Office;GTK;"/"Categories=Utility;ContactManagement;GTK;"/g ${1}/PARSIX/usr/share/applications/wammu.desktop &>/dev/null 51 58 sed -i s/"Exec=\/usr\/sbin\/pppoeconf"/"Exec=gksu \/usr\/sbin\/pppoeconf"/g ${1}/PARSIX/usr/share/applications/pppoeconf.desktop &>/dev/null 52 59 53 60 # SquashFS Compression 54 mksquashfs ${1}/PARSIX/ $ MASTER/PARSIX/PARSIX -b 6553661 mksquashfs ${1}/PARSIX/ ${master}/PARSIX/PARSIX -b 65536 55 62 56 63 # Generate ISO 57 (cd ${ MASTER}/ && find -type f -not -name md5sums -not -name boot.cat -not -name isolinux.bin -exec md5sum '{}' \; > PARSIX/md5sums)64 (cd ${master}/ && find -type f -not -name md5sums -not -name boot.cat -not -name isolinux.bin -exec md5sum '{}' \; > PARSIX/md5sums) 58 65 59 mkisofs -pad -l -r -J -v -V ${2} -P "$ PUBLISHER" -no-emul-boot -boot-load-size 4 -boot-info-table -b boot/isolinux/isolinux.bin -c boot/isolinux/boot.cat -hide-rr-moved -o iso/${3} ${MASTER}/66 mkisofs -pad -l -r -J -v -V ${2} -P "${publisher}" -no-emul-boot -boot-load-size 4 -boot-info-table -b boot/isolinux/isolinux.bin -c boot/isolinux/boot.cat -hide-rr-moved -o iso/${3} ${master}/ 60 67
Note: See TracChangeset
for help on using the changeset viewer.


