diff options
| author | Christoph Berg <myon@debian.org> | 2020-03-31 17:57:07 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2020-03-31 17:57:07 +0200 |
| commit | c2bdd8f8d96bf5329672163cc0905a22589d26d3 (patch) | |
| tree | 76ce2d78c98a958f97dfb6128fee9c529a2a55aa /build/macos | |
| parent | b255867dd3e05fff714c5d3325c02596bf5854c8 (diff) | |
New upstream version 20200227+py3+20200213upstream/20200227+py3+20200213
Diffstat (limited to 'build/macos')
| -rw-r--r-- | build/macos/make_pango.sh | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/build/macos/make_pango.sh b/build/macos/make_pango.sh new file mode 100644 index 0000000..57d3429 --- /dev/null +++ b/build/macos/make_pango.sh @@ -0,0 +1,51 @@ +#!/usr/bin/env bash + +make_pango_modules() { + local src=$1 + local dst=$2 + local sf=${src}/etc/pango/pango.modules + local df=${dst}/etc/pango/pango.modules + + cat $sf | sed 's/\/opt\/.*\/lib/..\/Resources/' > $df +} + +make_pango_rc() { + local src=$1 + local dst=$2 + local sf=${src}/etc/pango/pangorc + local df=${dst}/etc/pango/pangorc + + cat $sf | sed 's/\/opt\/.*\/etc/.\/etc/' > $df +} + +make_pangox_aliases() { + local src=$1 + local dst=$2 + + cp ${src}/etc/pango/pangox.aliases ${dst}/etc/pango +} + +usage() { + echo 'Usage: make_pango.sh [PATH_TO_MACPORTS] [PATH_TO_APP]' + echo 'Example:' + echo ' make_pango.sh /opt/local dist/d-rats.app' +} + +if [ -z "$1" ]; then + usage + exit 1 +fi + +if [ -z "$2" ]; then + usage + exit 1 +fi + +base=$1 +app="$2/Contents/Resources" + +mkdir -p ${app}/etc/pango + +make_pango_modules $base $app +make_pango_rc $base $app +make_pangox_aliases $base $app |
