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

Revision 1248, 1.1 KB (checked in by kris, 10 months ago)

Added gkrellm2 to our module list

  • 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# ${1} is the directory name.
7# ${2} is the username of person performing install.
8# TIP: 'kdialog' should be used for user interaction.
9# To interact with the progress dialog echo these flags:
10# echo 'TOTALSTEPS: <num>' # Set the total steps of the progress bar
11# echo 'SETSTEPS: <num>' # Set the current progress of the progress bar
12# echo 'MSG: <text>' # Display this text above progress bar
13#########################################
14
15cd /Programs/${PROGDIR}
16
17ln -s /Programs/${PROGDIR}/share/gkrellm2 /usr/local/share/gkrellm2
18ln -s /Programs/${PROGDIR}/.sbin/gkrellm /usr/local/bin/gkrellm
19
20
21# Copy over all the LANG files
22LANGFILE="gkrellm.mo"
23cd /Programs/${PROGDIR}/locale
24for i in `ls`
25do
26  mkdir -p /usr/local/share/locale/${i}/LC_MESSAGES >/dev/null 2>/dev/null
27  cp /Programs/${PROGDIR}/locale/${i}/${LANGFILE} /usr/local/share/locale/${i}/LC_MESSAGES/${LANGFILE}
28done
29
30echo "LAUNCHCLOSE: /usr/local/bin/gkrellm"
Note: See TracBrowser for help on using the browser.