All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ache-xmlgraphics.batik.1.8pre-20141006.source-code.make-squiggle-app.sh.template Maven / Gradle / Ivy

The newest version!
#!/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
  @VERSION@
  CFBundleShortVersionString
  @VERSION@
  CFBundleIconFile
  Squiggle.icns
  CFBundleIdentifier
  org.apache.batik
  CFBundleInfoDictionaryVersion
  6.0
  CFBundleName
  Squiggle
  CFBundlePackageType
  APPL
  CFBundleSignature
  ????
  NSHumanReadableCopyright
  Copyright © @YEAR@ Apache Software Foundation. All Rights Reserved.


EOF

cat >$MAC/Squiggle <




© 2015 - 2025 Weber Informatics LLC | Privacy Policy