root/pbibuild/modules/k3b/build.sh

Revision 1005, 1.4 kB (checked in by kris, 9 months ago)

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

  • 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# Save the right version number in the removepbi.sh script
13sed -e "s,CHANGEME,K3B${PORTVER},g" ${PBIDIR}/scripts/removepbi.sh > /tmp/removepbi.sh
14mv /tmp/removepbi.sh ${PBIDIR}/scripts/removepbi.sh
15chmod 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
Note: See TracBrowser for help on using the browser.