Changeset 1005

Show
Ignore:
Timestamp:
12/12/07 11:17:51 (12 months ago)
Author:
kris
Message:

Fixed up the K3b module to include the k3b-i18n package, and copy these
language files into the PBI

Location:
pbibuild/modules/k3b
Files:
4 modified

Legend:

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

    r862 r1005  
    1414mv /tmp/removepbi.sh ${PBIDIR}/scripts/removepbi.sh 
    1515chmod 755 ${PBIDIR}/scripts/removepbi.sh 
     16 
     17 
     18# Get all the various language files and copy them to the PBI 
     19LANGFILE="k3b.mo" 
     20LANGFILE1="k3bsetup.mo" 
     21LANGFILE2="libk3b.mo" 
     22LANGFILE3="libk3bdevice.mo" 
     23mkdir ${PBIDIR}/locale/ 
     24cd /usr/local/share/locale 
     25for i in `ls` 
     26do 
     27  if [ -e "/usr/local/share/locale/${i}/LC_MESSAGES/${LANGFILE}" ] 
     28  then 
     29    mkdir ${PBIDIR}/locale/${i} 
     30    cp /usr/local/share/locale/${i}/LC_MESSAGES/${LANGFILE} ${PBIDIR}/locale/${i}/ 
     31    cp /usr/local/share/locale/${i}/LC_MESSAGES/${LANGFILE1} ${PBIDIR}/locale/${i}/ 
     32    cp /usr/local/share/locale/${i}/LC_MESSAGES/${LANGFILE2} ${PBIDIR}/locale/${i}/ 
     33    cp /usr/local/share/locale/${i}/LC_MESSAGES/${LANGFILE3} ${PBIDIR}/locale/${i}/ 
     34  fi 
     35done 
  • pbibuild/modules/k3b/overlay-dir/PBI.RemoveScript.sh

    r862 r1005  
    2727done 
    2828 
     29# Remove the old locale files since we are uninstalling 
     30LANGFILE="k3b.mo" 
     31LANGFILE1="k3bsetup.mo" 
     32LANGFILE2="libk3b.mo" 
     33LANGFILE3="libk3bdevice.mo" 
     34cd /Programs/${PROGDIR}/locale 
     35for i in `ls` 
     36do 
     37  rm /usr/local/share/locale/${i}/LC_MESSAGES/${LANGFILE} 
     38  rm /usr/local/share/locale/${i}/LC_MESSAGES/${LANGFILE1} 
     39  rm /usr/local/share/locale/${i}/LC_MESSAGES/${LANGFILE2} 
     40  rm /usr/local/share/locale/${i}/LC_MESSAGES/${LANGFILE3} 
     41done 
     42 
    2943cd /home 
    3044for i in `ls`  
  • pbibuild/modules/k3b/overlay-dir/PBI.SetupScript.sh

    r892 r1005  
    3636done 
    3737 
     38# Copy over all the LANG files 
     39LANGFILE="k3b.mo" 
     40LANGFILE1="k3bsetup.mo" 
     41LANGFILE2="libk3b.mo" 
     42LANGFILE3="libk3bdevice.mo" 
     43cd /Programs/${PROGDIR}/locale 
     44for i in `ls` 
     45do 
     46  mkdir -p /usr/local/share/locale/${i}/LC_MESSAGES >/dev/null 2>/dev/null 
     47  cp /Programs/${PROGDIR}/locale/${i}/${LANGFILE} /usr/local/share/locale/${i}/LC_MESSAGES/${LANGFILE} 
     48  cp /Programs/${PROGDIR}/locale/${i}/${LANGFILE1} /usr/local/share/locale/${i}/LC_MESSAGES/${LANGFILE1} 
     49  cp /Programs/${PROGDIR}/locale/${i}/${LANGFILE2} /usr/local/share/locale/${i}/LC_MESSAGES/${LANGFILE2} 
     50  cp /Programs/${PROGDIR}/locale/${i}/${LANGFILE3} /usr/local/share/locale/${i}/LC_MESSAGES/${LANGFILE3} 
     51done 
     52 
     53 
    3854echo "LAUNCHCLOSE: /usr/local/bin/k3b" 
  • pbibuild/modules/k3b/pbi.conf

    r892 r1005  
    2626 
    2727# Other Ports we need built (One per line) 
    28 OTHERPORT="" 
     28OTHERPORT="/usr/ports/misc/k3b-i18n" 
    2929 
    3030# Enter your custom make options here 
     
    3333# Build Key - Change this to anything else to trigger a rebuild  
    3434#           - The rebuild will take place even if port is still the same ver 
    35 BUILDKEY="05" 
     35BUILDKEY="27" 
    3636 
    3737export PBIPORT MAKEOPTS PROGNAME PROGWEB PROGAUTHOR OTHERPORT PROGICON PROGLIBS PBIUPDATE BUILDKEY