View | Details | Raw Unified | Return to bug 6540
Collapse All | Expand All

(-)a/debian/scripts/koha-create (-6 / +6 lines)
Lines 20-28 Link Here
20
set -e
20
set -e
21
21
22
usage="Usage: $0 [--create-db|--request-db|--populate-db] \
22
usage="Usage: $0 [--create-db|--request-db|--populate-db] \
23
[--marcflavor marc21|normarc|unimarc] \
23
    [--marcflavor marc21|normarc|unimarc] \
24
[--zebralang en|fr|nb] [--defaultsql /path/to/some.sql] 
24
    [--zebralang en|nb|fr] \
25
[--configfile /path/to/config] instancename"
25
    [--defaultsql /path/to/some.sql] \
26
    [--configfile /path/to/config] instancename"
26
27
27
die() {
28
die() {
28
    echo "$@" 1>&2
29
    echo "$@" 1>&2
Lines 78-84 fi Link Here
78
79
79
[ $# -ge 2 ] && [ $# -le 10 ] || die $usage
80
[ $# -ge 2 ] && [ $# -le 10 ] || die $usage
80
81
81
TEMP=`getopt -o crpm:l: -l create-db,request-db,populate-db,marcflavor:,zebralang:,configfile: \
82
TEMP=`getopt -o crpm:l:d:f: -l create-db,request-db,populate-db,marcflavor:,zebralang:,defaultsql:,configfile: \
82
     -n "$0" -- "$@"`
83
     -n "$0" -- "$@"`
83
84
84
# Note the quotes around `$TEMP': they are essential!
85
# Note the quotes around `$TEMP': they are essential!
Lines 99-105 while true ; do Link Here
99
		-d|--defaultsql) CLO_DEFAULTSQL="$2" ; shift 2 ;;
100
		-d|--defaultsql) CLO_DEFAULTSQL="$2" ; shift 2 ;;
100
		-f|--configfile) configfile="$2" ; shift 2 ;;
101
		-f|--configfile) configfile="$2" ; shift 2 ;;
101
		--) shift ; break ;;
102
		--) shift ; break ;;
102
		*) die $usage ;;
103
		*) die "Internal error processing command line arguments" ;;
103
	esac
104
	esac
104
done
105
done
105
106
106
- 

Return to bug 6540