root/pbibuild/modules/frozenbubble/build.sh

Revision 1131, 2.0 kB (checked in by kris, 11 months ago)

Added frozenbubble to the archive of modules, until we can get a fixed
version in ports, current one is broken

  • 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# Get all the various language files and copy them to the PBI
13LANGFILE="frozenbubble.mo"
14mkdir ${PBIDIR}/locale/
15cd /usr/local/share/locale
16for i in `ls`
17do
18  if [ -e "/usr/local/share/locale/${i}/LC_MESSAGES/${LANGFILE}" ]
19  then
20    mkdir ${PBIDIR}/locale/${i}
21    cp /usr/local/share/locale/${i}/LC_MESSAGES/${LANGFILE} ${PBIDIR}/locale/${i}/
22  fi
23done
24
25
26# Setup the perl call at the top of frozen-bubble properly
27sed -e "s,/usr/bin/perl,/Programs/FrozenBubble${PORTVER}/bin/perl,g" ${PBIDIR}/bin/frozen-bubble > /tmp/frozen-bubble
28mv /tmp/frozen-bubble ${PBIDIR}/bin/frozen-bubble
29chmod 755 ${PBIDIR}/bin/frozen-bubble
30
31# Setup the perl call at the top of frozen-bubble properly
32sed -e "s,/usr/bin/perl,/Programs/FrozenBubble${PORTVER}/bin/perl,g" ${PBIDIR}/bin/frozen-bubble-editor > /tmp/frozen-bubble-editor
33mv /tmp/frozen-bubble-editor ${PBIDIR}/bin/frozen-bubble-editor
34chmod 755 ${PBIDIR}/bin/frozen-bubble-editor
35
36
37# Setup the PROGDIR at the top of frozen-bubble.sh properly
38sed -e "s,CHANGEME,FrozenBubble${PORTVER},g" ${PBIDIR}/bin/frozen-bubble.sh > /tmp/frozen-bubble.sh
39mv /tmp/frozen-bubble.sh ${PBIDIR}/bin/frozen-bubble.sh
40chmod 755 ${PBIDIR}/bin/frozen-bubble.sh
41
42# Setup the PROGDIR at the top of frozen-bubble-editor.sh properly
43sed -e "s,CHANGEME,FrozenBubble${PORTVER},g" ${PBIDIR}/bin/frozen-bubble-editor.sh > /tmp/frozen-bubble-editor.sh
44mv /tmp/frozen-bubble-editor.sh ${PBIDIR}/bin/frozen-bubble-editor.sh
45chmod 755 ${PBIDIR}/bin/frozen-bubble-editor.sh
Note: See TracBrowser for help on using the browser.