|
Revision 1394, 1.4 KB
(checked in by gonzalo, 10 months ago)
|
|
Celestia added
|
| 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 | ln -s /Programs/${PROGDIR}/.sbin/celestia /usr/local/bin/celestia |
|---|
| 18 | #ln -s /Programs/${PROGDIR}/share/applications/celestia.desktop /usr/local/share/applications/celestia.desktop |
|---|
| 19 | ln -s /Programs/${PROGDIR}/share/celestia /usr/local/share/celestia |
|---|
| 20 | ln -s /Programs/${PROGDIR}/share/doc/celestia /usr/local/share/doc/celestia |
|---|
| 21 | # Copy over all the LANG files |
|---|
| 22 | LANGFILE="celestia.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 | echo "LAUNCHCLOSE: /usr/local/bin/celestia" |
|---|