1#!/bin/sh 2# ``Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13# 14# The Initial Developer of the Original Code is Ericsson Utvecklings AB. 15# Portions created by Ericsson are Copyright 1999-2000, Ericsson 16# Utvecklings AB. All Rights Reserved.'' 17# 18 19APP= 20TITLE= 21VSN= 22 23while [ $# -gt 0 ]; do 24 case $1 in 25 -app) 26 APP=$2; 27 shift; 28 shift;; 29 -title) 30 TITLE=$2; 31 shift; 32 shift;; 33 -vsn) 34 VSN=$2; 35 shift; 36 shift;; 37 esac 38done 39 40if [ -n "$APP" -a -n "$TITLE" ] ; then 41 erl -boot start_clean -noshell \ 42 -run edoc_run application $APP "\".\"" "[{title,$TITLE}]" \ 43 -s erlang halt 44elif [ -n "$APP" -a -n "$VSN" ] ; then 45 erl -boot start_clean -noshell \ 46 -run edoc_run application $APP "\".\"" "[{def,{vsn,\"$VSN\"}}]" \ 47 -s erlang halt 48else 49 echo "Usage: edoc_generate [-app Appname [-title Title |-vsn Vsn]]" 50fi 51