root/pbibuild/modules/inkscape/build.sh

Revision 952, 0.9 kB (checked in by kris, 9 months ago)

Fixed up Inkscape to now ask if we want to remove the user profile data,
and also added the .mo translations to the app

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