summaryrefslogtreecommitdiff
path: root/tools/osx_packaging
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2016-05-31 12:32:30 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2016-05-31 15:30:46 -0400
commit257f1bf7df8378395684d9ce28643398ee8f7d5f (patch)
tree7458f8b4a21cf848f6413de43ca2df00d60f6e14 /tools/osx_packaging
parent8faf313ed21888972d3dbe96f3aaa57de469e4eb (diff)
code to install color themes for linux + OS X builds
Diffstat (limited to 'tools/osx_packaging')
-rwxr-xr-xtools/osx_packaging/osx_build12
1 files changed, 11 insertions, 1 deletions
diff --git a/tools/osx_packaging/osx_build b/tools/osx_packaging/osx_build
index 54dac91f99..b555688f52 100755
--- a/tools/osx_packaging/osx_build
+++ b/tools/osx_packaging/osx_build
@@ -143,6 +143,7 @@ Templates=$Shared/templates
PatchFiles=$Shared/patchfiles
LuaScripts=$Shared/scripts
MackieControl=$Shared/mcp
+Themes=$Shared/themes
if [ x$PRINT_SYSDEPS != x ] ; then
#
@@ -488,10 +489,19 @@ cp ../../system_config $Resources/system_config
cp ../../instant.xml $Resources/instant.xml
cp ../../gtk2_ardour/icons/*.png ${Resources}/icons/
cp -r ../../gtk2_ardour/icons/cursor_* ${Resources}/icons/
-cp ../../gtk2_ardour/*.colors $Resources
cp ../../gtk2_ardour/ArdourMono.ttf $Shared
cp ../../gtk2_ardour/resources/${PRODUCT_PKG_DIR}-* ${Resources}/resources/
+# Themes. Grab only the ones for this program
+lower_case_appname=`echo $APPNAME | tr '[:upper:]' '[:lower:]'`
+for colors in `echo ../../gtk2_ardour/themes/*-${lower_case_appname}.colors`
+do
+ install_name=`echo $colors | sed "s/-$lower_case_appname//"`
+ install_name=`basename $install_name`
+ cp $colors $Themes/$install_name
+done
+
+
# go through and recursively remove any .svn dirs in the bundle
for svndir in `find $APPDIR -name .svn -type dir`; do
rm -rf $svndir