#!/bin/sh # * P_LZ_COPYRIGHT_BEGIN ****************************************************** # * Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. * # * Use is subject to license terms. * # * P_LZ_COPYRIGHT_END ******************************************************** # LPS_HOME must be set for this to work VERSION=$1 # 1.0 for now VERSIONUPPER=$2 # gm for now TOMCAT=$3 # developer or deployer BASE="openlaszlo-$VERSION-osx-dev-install" PKG="$BASE.pkg" NAME="OpenLaszlo Server $VERSION" # Make flex utils and LPS utils executable # because ant won't do it for us. /bin/chmod a+x "$LPS_HOME/lps-$VERSION/Server/lps-$VERSION/WEB-INF/bin/"* /bin/chmod a+x "$LPS_HOME/lps-$VERSION/Server/lps-$VERSION/WEB-INF/lps/server/bin/"* /bin/rm -rf /tmp/$PKG /bin/mkdir /tmp/$PKG /bin/mkdir /tmp/$PKG/Contents /bin/mkdir /tmp/$PKG/Contents/Resources /bin/echo -n pmkrpkg1 > /tmp/$PKG/Contents/PkgInfo /bin/cat - < /tmp/$PKG/Contents/Info.plist CFBundleGetInfoString OpenLaszlo Server $VERSIONUPPER CFBundleIdentifier org.openlaszlo.lps CFBundleName OpenLaszlo Server CFBundleShortVersionString $VERSIONUPPER IFMajorVersion 1 IFMinorVersion 0 IFPkgFlagAllowBackRev IFPkgFlagAuthorizationAction AdminAuthorization IFPkgFlagDefaultLocation /Applications IFPkgFlagInstallFat IFPkgFlagIsRequired IFPkgFlagOverwritePermissions IFPkgFlagRelocatable IFPkgFlagRestartAction NoRestart IFPkgFlagRootVolumeOnly IFPkgFlagUpdateInstalledLanguages IFPkgFlagUseUserMask IFPkgFormatVersion 0.10000000149011612 EOF /bin/cp $LPS_HOME/installer/macosx/background.jpg /tmp/$PKG/Contents/Resources /bin/cp $LPS_HOME/installer/macosx/welcome.html /tmp/$PKG/Contents/Resources/Welcome.html #/bin/cp $LPS_HOME/installer/macosx/readme.html /tmp/$PKG/Contents/Resources/ReadMe.html /bin/cp $LPS_HOME/LICENSE.rtf /tmp/$PKG/Contents/Resources/License.rtf /bin/cat - < /tmp/$PKG/Contents/Resources/Description.plist IFPkgDescriptionDeleteWarning IFPkgDescriptionDescription IFPkgDescriptionTitle OpenLaszlo Server IFPkgDescriptionVersion $VERSIONUPPER EOF if [ -d "$LPS_HOME/lps-$VERSION/$TOMCAT" ]; then /bin/cat - < /tmp/$PKG/Contents/Resources/postflight #!/bin/sh /bin/chmod -R a+rw "\$2/$NAME" /bin/chmod +x "\$2/$NAME/"*.command /usr/bin/osascript <