root/pbibuild/modules/kdesvn/build.sh

Revision 963, 0.9 kB (checked in by gonzalo, 12 months ago)

New .mo files script manager

  • 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# Get all the various language files and copy them to the PBI
12LANGFILE="kdesvn.mo"
13mkdir ${PBIDIR}/locale/
14cd /usr/local/share/locale
15for i in `ls`
16do
17  if [ -e "/usr/local/share/locale/${i}/LC_MESSAGES/${LANGFILE}" ]
18  then
19    mkdir ${PBIDIR}/locale/${i}
20    cp /usr/local/share/locale/${i}/LC_MESSAGES/${LANGFILE} ${PBIDIR}/locale/${i}/
21  fi
22done
Note: See TracBrowser for help on using the browser.