|
Revision 1625, 1.2 kB
(checked in by kris, 5 months ago)
|
|
Fixed up Glest a bit more, should fix the font problems and missing libs
from command-line usage
|
-
Property svn:executable set to
*
|
| Line | |
|---|
| 1 | #!/bin/sh |
|---|
| 2 | # PBI building script |
|---|
| 3 | # This will run after your port build is complete |
|---|
| 4 | # Build your PBI here, and exit 0 on success, or exit 1 on failure. |
|---|
| 5 | ############################################################################## |
|---|
| 6 | # Available Variables |
|---|
| 7 | # PBIDIR = The location of where you can populate your PBI directory |
|---|
| 8 | # MODULEDIR = The location of the module directory for this PBI |
|---|
| 9 | # PORTVER = Version number of the port we used to build |
|---|
| 10 | ############################################################################## |
|---|
| 11 | |
|---|
| 12 | # We need to modify the glest.ini file in order for it to use a valid font |
|---|
| 13 | # on PC-BSD |
|---|
| 14 | |
|---|
| 15 | rm /tmp/glest-new.ini >/dev/null 2>/dev/null |
|---|
| 16 | FOUNDLINE="0" |
|---|
| 17 | |
|---|
| 18 | while read line |
|---|
| 19 | do |
|---|
| 20 | |
|---|
| 21 | echo $line | grep Font >/dev/null 2>/dev/null |
|---|
| 22 | if [ "$?" = "0" ] |
|---|
| 23 | then |
|---|
| 24 | if [ "$FOUNDLINE" = "0" ] |
|---|
| 25 | then |
|---|
| 26 | echo "FontConsole=-bitstream-bitstream charter-*-*-normal--*-*-*-*-*-*-*-* |
|---|
| 27 | FontDisplay=-bitstream-bitstream charter-*-*-normal--*-*-*-*-*-*-*-* |
|---|
| 28 | FontMenu=-bitstream-bitstream charter-*-*-normal--*-*-*-*-*-*-*-*" >> /tmp/glest-new.ini |
|---|
| 29 | FOUNDLINE="1" |
|---|
| 30 | fi |
|---|
| 31 | else |
|---|
| 32 | echo "$line" >> /tmp/glest-new.ini |
|---|
| 33 | fi |
|---|
| 34 | |
|---|
| 35 | done < "${PBIDIR}/share/glest/glest.ini" |
|---|
| 36 | |
|---|
| 37 | mv /tmp/glest-new.ini ${PBIDIR}/share/glest/glest.ini |
|---|