Changeset 1048 for pbibuild/modules/gimp

Show
Ignore:
Timestamp:
12/19/07 13:29:43 (12 months ago)
Author:
kris
Message:

Added gimp lang files to module, so it works with other languages

Location:
pbibuild/modules/gimp
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • pbibuild/modules/gimp/build.sh

    r862 r1048  
    99#   PORTVER = Version number of the port we used to build 
    1010############################################################################## 
     11 
     12# Get all the various language files and copy them to the PBI 
     13LANGFILE="gimp.mo" 
     14mkdir ${PBIDIR}/locale/ 
     15cd /usr/local/share/locale 
     16for i in `ls` 
     17do 
     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 
     23done 
  • pbibuild/modules/gimp/overlay-dir/PBI.RemoveScript.sh

    r867 r1048  
    1414rm /usr/local/bin/gimp 
    1515 
     16# Remove the old locale files since we are uninstalling 
     17LANGFILE="gimp.mo" 
     18cd /Programs/${PROGDIR}/locale 
     19for i in `ls` 
     20do 
     21  rm /usr/local/share/locale/${i}/LC_MESSAGES/${LANGFILE} 
     22done 
     23 
    1624cd /home  
    1725 for i in `ls`  
  • pbibuild/modules/gimp/overlay-dir/PBI.SetupScript.sh

    r867 r1048  
    2222ln -s /Programs/${PROGDIR}/.sbin/gimp /usr/local/bin/gimp 
    2323 
     24# Copy over all the LANG files 
     25LANGFILE="gimp.mo" 
     26cd /Programs/${PROGDIR}/locale 
     27for i in `ls` 
     28do 
     29  mkdir -p /usr/local/share/locale/${i}/LC_MESSAGES >/dev/null 2>/dev/null 
     30  cp /Programs/${PROGDIR}/locale/${i}/${LANGFILE} /usr/local/share/locale/${i}/LC_MESSAGES/${LANGFILE} 
     31done 
     32 
     33 
    2434# Enable the start when finished button 
    2535echo "LAUNCHCLOSE: /usr/local/bin/gimp"