Initialize an uninitialized variable
[ardour.git] / tools / osx_packaging / osx_build
index d6b1896617eb701283a9a036f9e30840c44c0dfe..3e9b587c332b2ed9df072d26febeabf92a63bed9 100755 (executable)
@@ -66,7 +66,7 @@ while [ $# -gt 0 ] ; do
                STRIP= ;
                PRODUCT_PKG_DIR=Mixbus32C;
                lower_case_appname=mixbus32c;
-               APPNAME=Mixbus32C-${major_version} ;
+               APPNAME=Mixbus32C ;
                BUNDLENAME=Mixbus32C-${major_version} ;
                shift ;;
        --public)
@@ -147,6 +147,7 @@ Templates=$Shared/templates
 PatchFiles=$Shared/patchfiles
 LuaScripts=$Shared/scripts
 MackieControl=$Shared/mcp
+OSC=$Shared/osc
 Themes=$Shared/themes
 
 if [ x$PRINT_SYSDEPS != x ] ; then
@@ -183,6 +184,7 @@ mkdir -p $Templates
 mkdir -p $Frameworks/modules
 mkdir -p $Etc
 mkdir -p $MackieControl
+mkdir -p $OSC
 mkdir -p $PatchFiles
 mkdir -p $LuaScripts
 mkdir -p $Themes
@@ -382,6 +384,12 @@ for x in $BUILD_ROOT/../mcp/*.device $BUILD_ROOT/../mcp/*.profile ; do
     cp "$x" $MackieControl
 done
 
+# OSC data
+# got to be careful with names here
+for x in $BUILD_ROOT/../osc/*.preset ; do
+    cp "$x" $OSC
+done
+
 # VAMP plugins that we use
 cp $BUILD_ROOT/libs/vamp-plugins/libardourvampplugins.dylib $Frameworks
 
@@ -472,6 +480,7 @@ cp $BUILD_ROOT/gtk2_ardour/clearlooks.rc $Resources
 
 mkdir ${Resources}/icons
 mkdir ${Resources}/resources
+cp ../../system_config $Resources/system_config
 cp ../../gtk2_ardour/icons/*.png ${Resources}/icons/
 cp -r ../../gtk2_ardour/icons/cursor_* ${Resources}/icons/
 cp ../../gtk2_ardour/ArdourMono.ttf $Shared
@@ -830,7 +839,16 @@ osascript << EOF
       close
       open
       update without registering applications
-      delay 5
+      delay 3
+      set position of item "${APPDIR}" of container window to {90, 100}
+      set position of item "Applications" of container window to {310, 100}
+      ${MIXBUSPOS}
+      ${HARVIDPOS}
+      ${XJADEOPOS}
+      close
+      open
+      update without registering applications
+      delay 3
       eject
     end tell
   end tell