|
Revision 1397, 0.9 kB
(checked in by gonzalo, 6 months ago)
|
|
gFTP added
|
-
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 |
|---|
| 13 | LANGFILE="gftp.mo" |
|---|
| 14 | mkdir ${PBIDIR}/locale/ |
|---|
| 15 | cd /usr/local/share/locale |
|---|
| 16 | for i in `ls` |
|---|
| 17 | do |
|---|
| 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 |
|---|
| 23 | done |
|---|