code to install color themes for linux + OS X builds
authorPaul Davis <paul@linuxaudiosystems.com>
Tue, 31 May 2016 16:32:30 +0000 (12:32 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Tue, 31 May 2016 19:30:46 +0000 (15:30 -0400)
tools/linux_packaging/build
tools/osx_packaging/osx_build

index 8dae3257252efed7fe9f2635549b36bdaee0bb5a..c84cadf4d3c1ca63644ba510af881d2615e1fb1f 100755 (executable)
@@ -186,6 +186,7 @@ Surfaces=$APPLIB/surfaces
 Panners=$APPLIB/panners
 Backends=$APPLIB/backends
 
+Themes=$Shared/themes
 Templates=$Shared/templates
 ExportFormats=$Shared/export
 Locale=$Shared/locale
@@ -220,6 +221,7 @@ mkdir -p $APPBIN
 mkdir -p $APPLIB
 mkdir -p $Etc
 mkdir -p $Shared
+mkdir -p $Themes
 mkdir -p $Locale
 mkdir -p $Surfaces
 mkdir -p $MidiMaps
@@ -589,13 +591,21 @@ cp $BUILD_ROOT/gtk2_ardour/default_ui_config $Etc
 mkdir ${Shared}/icons
 mkdir ${Shared}/resources
 cp ../../system_config $Etc/system_config
-cp ../../gtk2_ardour/*.colors $Etc
 cp ../../instant.xml $Shared/instant.xml
 cp ../../gtk2_ardour/icons/*.png ${Shared}/icons
 cp -r ../../gtk2_ardour/icons/icons/cursor_* ${Shared}/icons/
 cp ../../gtk2_ardour/ArdourMono.ttf $Shared
 cp ../../gtk2_ardour/resources/${APPNAME}-* ${Shared}/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    
+
 #
 # put sooper sekrit ingredients here and they will be copied
 #
index 54dac91f996989312c78d824133d7841743641be..b555688f52c21c9d8be8ca1934a93fe0947d003b 100755 (executable)
@@ -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