diff options
| author | Matthew Poletiek <matthew.poletiek@gmail.com> | 2020-12-08 21:03:16 -0600 |
|---|---|---|
| committer | Matthew Poletiek <matthew.poletiek@gmail.com> | 2020-12-08 21:03:16 -0600 |
| commit | e99416456afd4aa8bde42016826f9a345291cbf3 (patch) | |
| tree | a7a95639cd1cb5dbe2d91a2ca8e8defafac4296d /build/macos | |
| parent | 194cf4e5e0b6a2811103a9b739a72b9afe2b886c (diff) | |
| download | chirp-e99416456afd4aa8bde42016826f9a345291cbf3.tar.gz chirp-e99416456afd4aa8bde42016826f9a345291cbf3.tar.xz | |
Initial Commit
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 |
