root/pbibuild/modules/minigolfmaniacs/overlay-dir/PBI.SetupScript.sh

Revision 1256, 3.4 KB (checked in by gonzalo, 12 months ago)

MiniGolf? Maniacs fixed

  • Property svn:executable set to *
Line 
1#!/bin/sh
2# Filename: PBI.SetupScript.sh
3# Place any custom installation code here.
4# This script will be run after your program is extracted into
5# /Programs/<ProgNameVer>/
6# Available variables:
7# $PROGDIR - Directory where the files will be extracted to.
8# $USERNAME - Username of who started the installation.
9# $INSTALLMODE - Set to 'TEXT' or 'GUI', depending on which installer is running.
10#
11# TIP: 'kdialog' should be used for user interaction.
12# To interact with the progress dialog echo these flags:
13# echo 'TOTALSTEPS: <num>' # Set the total steps of the progress bar
14# echo 'SETSTEPS: <num>' # Set the current progress of the progress bar
15# echo 'MSG: <text>' # Display this text above progress bar
16#########################################
17ln -s /Programs/${PROGDIR}/.sbin/minigolfm /usr/local/bin/minigolfm
18ln -s /Programs/${PROGDIR}/.sbin/minigolfm-cfg /usr/local/bin/minigolfm-cfg
19cd /Programs/${PROGDIR}/msttf/
20#CABEXTRACT MSFONTS
21/Programs/${PROGDIR}/bin/cabextract arial32.exe
22        #ARIAL.EXE
23        mv /Programs/${PROGDIR}/msttf/Arial.TTF Arialn.ttf
24        mv /Programs/${PROGDIR}/msttf/Ariali.TTF Arialni.ttf
25        mv /Programs/${PROGDIR}/msttf/Arialbd.TTF Arialnbd.ttf
26        mv /Programs/${PROGDIR}/msttf/Arialbi.TTF Arialnbi.ttf
27/Programs/${PROGDIR}/bin/cabextract courie32.exe
28        #COURIER.EXE
29        mv /Programs/${PROGDIR}/msttf/cour.ttf cour.ttf
30        mv /Programs/${PROGDIR}/msttf/courbd.ttf courbd.ttf
31        mv /Programs/${PROGDIR}/msttf/courbi.ttf courbi.ttf
32        mv /Programs/${PROGDIR}/msttf/couri.ttf couri.ttf
33/Programs/${PROGDIR}/bin/cabextract comic32.exe
34        #COMIC.EXE
35        mv /Programs/${PROGDIR}/msttf/Comic.TTF comic.ttf
36        mv /Programs/${PROGDIR}/msttf/Comicbd.TTF comicbd.ttf
37/Programs/${PROGDIR}/bin/cabextract georgi32.exe
38        #GEORGIA.EXE
39        mv /Programs/${PROGDIR}/msttf/Georgia.TTF georgia.ttf
40        mv /Programs/${PROGDIR}/msttf/Georgiaz.TTF georgiaz.ttf
41        mv /Programs/${PROGDIR}/msttf/Georgiab.TTF georgiab.ttf
42        mv /Programs/${PROGDIR}/msttf/Georgiai.TTF georgiai.ttf
43/Programs/${PROGDIR}/bin/cabextract times32.exe
44        #TIMES NEW ROMAN.EXE
45        mv /Programs/${PROGDIR}/msttf/Times.TTF times.ttf
46        mv /Programs/${PROGDIR}/msttf/Timesbd.TTF timesbd.ttf
47        mv /Programs/${PROGDIR}/msttf/Timesbi.TTF timesbi.ttf
48        mv /Programs/${PROGDIR}/msttf/Timesi.TTF timesi.ttf
49/Programs/${PROGDIR}/bin/cabextract trebuc32.exe
50        #TREBUCHET.EXE
51        mv /Programs/${PROGDIR}/msttf/trebuc.ttf trebuc.ttf
52        mv /Programs/${PROGDIR}/msttf/trebucit.ttf trebucit.ttf
53        mv /Programs/${PROGDIR}/msttf/trebucbi.ttf trebucbi.ttf
54        mv /Programs/${PROGDIR}/msttf/Trebucbd.ttf trebucbd.ttf
55/Programs/${PROGDIR}/bin/cabextract verdan32.exe
56        #VERDANA.EXE
57        mv /Programs/${PROGDIR}/msttf/Verdana.TTF verdana.ttf
58        mv /Programs/${PROGDIR}/msttf/Verdanab.TTF verdanab.ttf
59        mv /Programs/${PROGDIR}/msttf/Verdanai.TTF verdanai.ttf
60        mv /Programs/${PROGDIR}/msttf/Verdanaz.TTF verdanaz.ttf
61/Programs/${PROGDIR}/bin/cabextract wd97vwr32.exe
62/Programs/${PROGDIR}/bin/cabextract webdin32.exe
63        #WEBDINGS.EXE
64        mv /Programs/${PROGDIR}/msttf/Webdings.TTF webdings.ttf
65#COPY ALL TO WINDOWS/FONT
66mv /Programs/${PROGDIR}/msttf/*.TTF /Programs/${PROGDIR}/mgm/drive_c/windows/fonts/
67mv /Programs/${PROGDIR}/msttf/*.ttf /Programs/${PROGDIR}/mgm/drive_c/windows/fonts/
68rm -fR /Programs/${PROGDIR}/msttf
69rm -fR /Programs/${PROGDIR}/bin/cabextract
70chmod -R 777 /Programs/${PROGDIR}/mgm
71chmod +x /Programs/${PROGDIR}/bin/minigolfm
72USER=`who | grep :0 | cut -f 1 -d " "`
73chown ${USER} /Programs/${PROGDIR}/mgm
74echo "LAUNCHCLOSE: /usr/local/bin/minigolfm"
Note: See TracBrowser for help on using the browser.