Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 41 lines (32 sloc) 0.756 kb
7820c42 @SevInf Added script for quick installation of the app and templates
SevInf authored
1 #!/bin/sh
2
3 BINARY_DIR=/usr/local/bin/
4 TEMPLATES_DIR=~/.appledoc
5
6 usage() {
7 cat <<EOF
8 Usage: $0 [-b binary_path] [-t templates_path]
9
10 Builds and installs appledoc
11
12 OPTIONS:
13 -b Path where binary will be installed. Default is $BINARY_DIR
14 -t Path where templates will be installed. Default is $TEMPLATES_DIR
15
16 EOF
17 }
18
19 while getopts "hb:t:" OPTION
20 do
21 case $OPTION in
22 h) usage
23 exit 0;;
24 b)
25 BINARY_DIR=$OPTARG;;
26 t)
27 TEMPLATES_DIR=$OPTARG;;
28 [?])
29 usage
30 exit 1;;
31 esac
32 done
33
34 echo "Building..."
35 xcodebuild -target appledoc -configuration Release install
36
37 echo "Installing binary to $BINARY_DIR"
38 cp /tmp/appledoc.dst/usr/local/bin/appledoc $BINARY_DIR
39
40 echo "Copying temapltes to $TEMPLATES_DIR"
41 cp -R Templates $TEMPLATES_DIR
Something went wrong with that request. Please try again.