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

Revision 994, 1.5 KB (checked in by kris, 12 months ago)

Fixed up the location of the bmpx.mo files to allow the translations to
load properly

  • 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#########################################
17
18ln -s /Programs/${PROGDIR}/.sbin/beep-media-player-2-bin /usr/local/bin/beep-media-player-2-bin
19ln -s /Programs/${PROGDIR}/share/bmpx /usr/local/share/bmpx
20ln -s /Programs/${PROGDIR}/libexec/beep-media-player-2-bin /usr/local/libexec/beep-media-player-2-bin
21ln -s /Programs/${PROGDIR}/libexec/beep-media-player-2-sentinel /usr/local/libexec/beep-media-player-2-sentinel
22
23ln -s /Programs/${PROGDIR} /Programs/BMPx
24
25# Copy over all the LANG files
26LANGFILE="bmpx.mo"
27cd /Programs/${PROGDIR}/share/locale
28for i in `ls`
29do
30  mkdir -p /usr/local/share/locale/${i}/LC_MESSAGES >/dev/null 2>/dev/null
31  cp /Programs/${PROGDIR}/share/locale/${i}/LC_MESSAGES/${LANGFILE} /usr/local/share/locale/${i}/LC_MESSAGES/${LANGFILE}
32done
33
34echo "LAUNCHCLOSE: /usr/local/bin/beep-media-player-2-bin"
Note: See TracBrowser for help on using the browser.