Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 31 lines (21 sloc) 0.716 kb
a327ea2 @andreyvit Imported official Platypus 4.0 sources.
authored
1 #!/bin/sh
2 #
3 # Generate Platypus.zip
4
5 # Get version
6 VERSION=`perl -e 'use Shell;@lines=cat("CommonDefs.h");foreach(@lines){if($_=~m/Platypus-(\d\.\d)/){print $1;}}'`
7
8 # Folder name
9 FOLDER=Platypus-$VERSION
10
11 # Create the folder
12 mkdir /tmp/$FOLDER
13 cp -r build/Deployment/Platypus.app /tmp/$FOLDER/
14 cp License.txt /tmp/$FOLDER/
15 cp Readme.html /tmp/$FOLDER/
16 cp -r 'Sample Scripts' /tmp/$FOLDER/
17
18 # Remove any svn files
19 /usr/bin/find /tmp/$FOLDER -type d -name .svn -exec rm -rf '{}' +
20
21 # Trim binaries, compress tiffs, remove .DS_Store, resource forks, etc.
22 ./trim-app -d -n -s -t -r -p -- /tmp/$FOLDER/
23
24 cd /tmp/
25
26 /usr/bin/zip -r platypus$VERSION.zip $FOLDER
27
28 mv /tmp/platypus$VERSION.zip ~/Desktop/
29
30 rm -R /tmp/$FOLDER
Something went wrong with that request. Please try again.