|
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 | |
|---|
| 15 | cd /Programs/${PROGDIR} |
|---|
| 16 | |
|---|
| 17 | ln -s /Programs/${PROGDIR}/share/gkrellm2 /usr/local/share/gkrellm2 |
|---|
| 18 | ln -s /Programs/${PROGDIR}/.sbin/gkrellm /usr/local/bin/gkrellm |
|---|
| 19 | |
|---|
| 20 | |
|---|
| 21 | # Copy over all the LANG files |
|---|
| 22 | LANGFILE="gkrellm.mo" |
|---|
| 23 | cd /Programs/${PROGDIR}/locale |
|---|
| 24 | for i in `ls` |
|---|
| 25 | do |
|---|
| 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} |
|---|
| 28 | done |
|---|
| 29 | |
|---|
| 30 | echo "LAUNCHCLOSE: /usr/local/bin/gkrellm" |
|---|