-
Notifications
You must be signed in to change notification settings - Fork 2
/
createDoc.sh
executable file
·36 lines (34 loc) · 1015 Bytes
/
createDoc.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/sh
if [ $# -lt 1 ]
then
ACTION="--h"
else
ACTION=$1
fi
if [ $# -eq 2 ]
then
ACTION=$2
case "$1" in
'-u') OPTION='--keep-undocumented-objects --keep-undocumented-members --search-undocumented-doc'
;;
'-d') OPTION=''
;;
*) ACTION="--h"
;;
esac
else
OPTION='--keep-undocumented-objects --keep-undocumented-members --search-undocumented-doc'
fi
echo $2 $1 $# $ACTION $OPTION
case "$ACTION" in
'Apple') echo "Apple Documentation, saved to Xcode"
appledoc --project-name GIDAAlertView --project-company "GIDAIbero" --company-id mx.uia.ie $OPTION --exit-threshold 2 --no-repeat-first-par GIDAAlertView.h
;;
'HTML') echo "HTML"
appledoc --project-name GIDAAlertView --project-company "GIDAIbero" --company-id mx.uia.ie $OPTION --exit-threshold 2 --no-create-docset --no-repeat-first-par GIDAAlertView.h
;;
'--h') echo "Usage: $0 <Option> [Apple|HTML]\nOption:\n\t-u Include undocumented methods/properties\n\t-d Do not include undocumented methods/properties"
;;
*) echo "Other"
;;
esac