#!/bin/bash # ----------------------------------------------------------------------------- # # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use this file except in compliance with # the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # # make-squiggle-app.sh # # Creates a Mac OS X application bundle for Squiggle, then opens a Finder # window for the current directory so that the user can drag the icon # into their desired installation location (probably /Applications). # # $Id$ # ----------------------------------------------------------------------------- trap 'echo Error creating application bundle.; exit 1' ERR cd `dirname "$0"`/.. APP=Squiggle.app CON=$APP/Contents MAC=$CON/MacOS RES=$CON/Resources [ -e $APP ] && echo $APP already exists: please move it out of the way before running this script. && exit 1 echo Creating $APP in `pwd`... mkdir $APP $CON $MAC $RES cat >$CON/Info.plist < CFBundleExecutable Squiggle CFBundleVersion 1.7+r608262 CFBundleShortVersionString 1.7+r608262 CFBundleIconFile Squiggle.icns CFBundleIdentifier org.apache.batik CFBundleInfoDictionaryVersion 6.0 CFBundleName Squiggle CFBundlePackageType APPL CFBundleSignature ???? NSHumanReadableCopyright Copyright © 2008 Apache Software Foundation. All Rights Reserved. EOF cat >$MAC/Squiggle <