DOOM3 from DVD and Spanish path

Installers we are searching testers for.
Sombra

DOOM3 from DVD and Spanish path

Postby Sombra » Thu Jul 19, 2007 3:41

Hi guys, yesterday later i was so bored and i make a little script to install DOOM3 from CD images, the idea is to automount the images storaged on a DVD and apply spanish path if needed. Tomorrow will make it more friendly with zenity and take the spanish path as a option.

My question is, it's possible to burn a file to a DVD with +x permission?

This will be the struct of the DVD/folder in the DVD:
http://img519.imageshack.us/img519/1622/doom3wc9.jpg
Inside cds folder are the 3 cds of DOOM on iso format.

sombrainstall.sh

Code: Select all

#/usr/bin/sh

i=1
while [ $i -lt 4 ]
do
   if [ ! -e ~/CD$i ]
   then
      mkdir ~/CD$i
      delete=1
   else
      delete=0
   fi
   i=$(($i+1))
done

mount -o loop ./CDS/cd1.iso ~/CD1
mount -o loop ./CDS/cd2.iso ~/CD2
mount -o loop ./CDS/cd3.iso ~/CD3

./doom3_1.3.1.1304-multilanguage.run

   if [ -e ~/doom3 ]
   then

      cuenta=2
      parar=0

      while [ $parar -eq 0 ]
      do
         if [ $(readlink ~/doom3 | cut -d/ -f$cuenta | wc -w) -gt 0 ]
         then
            cuenta=$(($cuenta+1))
         else
            parar=1
         fi
      done
      
      c_enlace=2
      while [ $c_enlace -lt $cuenta ]
      do
         enlace=$enlace/$(readlink ~/doom3 | cut -d/ -f$c_enlace)
         c_enlace=$(($c_enlace+1))
      done
      
      cp ./zpak000.pk4 $enlace/base
      sed 's/english/spanish/g' ~/.doom3/base/DoomConfig.cfg > ~/DoomConfig.cfg
      mv ~/DoomConfig.cfg ~/.doom3/base/DoomConfig.cfg

   fi
i=1
while [ $i -lt 4 ]
do
   if [ $(mount | grep CDS/cd$i.iso | wc -l) -gt 0 ]
   then
      umount ~/CD$i
      if [ $delete -gt 0 ]
      then
         rm -r ~/CD$i
      fi
   fi
   i=$(($i+1))
done


if someone can add any feature please share it. cya keep the good work!

kratz00
liflg member
Posts: 1654
Joined: Fri Oct 22, 2004 16:23

Re: DOOM3 from DVD and Spanish path

Postby kratz00 » Thu Jul 19, 2007 18:13

Sombra wrote:
My question is, it's possible to burn a file to a DVD with +x permission?


Hi Sombra,

no idea but create an iso image with mkisofs, mount it and have look :)


Who is online

Users browsing this forum: No registered users and 1 guest