Subversion Repositories DevTools

Rev

Rev 5710 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5710 Rev 6177
Line 50... Line 50...
50
while [ "$#" -gt "0" -a "${FLAG_LIB}" = "" ]; do
50
while [ "$#" -gt "0" -a "${FLAG_LIB}" = "" ]; do
51
	case $1 in
51
	case $1 in
52
	-h | -\? )
52
	-h | -\? )
53
	cat << EOF
53
	cat << EOF
54
Archive Merge Utility (${VERSION})
54
Archive Merge Utility (${VERSION})
55
Copyright (c) VIX TECHNOLOGY (AUST) LTD
55
COPYRIGHT - VIX IP PTY LTD ("VIX"). ALL RIGHTS RESERVED.
56
 
56
 
57
usage:          
57
usage:          
58
    ${SCRIPT} [-?h] [-d tmpdir] [-v] [-t machtype] [-a librarian] 
58
    ${SCRIPT} [-?h] [-d tmpdir] [-v] [-t machtype] [-a librarian] 
59
        [-m librarian] {dest-library} source [source ...]
59
        [-m librarian] {dest-library} source [source ...]
60
 
60
 
Line 73... Line 73...
73
 
73
 
74
	-v)	FLAG_V=1
74
	-v)	FLAG_V=1
75
		;;
75
		;;
76
 
76
 
77
	-d)	if [ "${FLAG_DIR}" != "" ]; then
77
	-d)	if [ "${FLAG_DIR}" != "" ]; then
78
			echo ${SCRIPT} "You must specify only one -d.  Aborting."
78
			echo "${SCRIPT}: You must specify only one -d.  Aborting."
79
			exit 1
79
			exit 1
80
		fi
80
		fi
81
		if [ "$2" = "" ]; then
81
		if [ "$2" = "" ]; then
82
			echo "${SCRIPT}: The $1 switch requires a command to be executed.  Aborting."
82
			echo "${SCRIPT}: The $1 switch requires a command to be executed.  Aborting."
83
			exit 1
83
			exit 1
Line 125... Line 125...
125
	shift
125
	shift
126
done
126
done
127
 
127
 
128
if [ "${FLAG_MACHTYPE}" = "" ]; then
128
if [ "${FLAG_MACHTYPE}" = "" ]; then
129
if [ "${GBE_MACHTYPE}" = "" ]; then
129
if [ "${GBE_MACHTYPE}" = "" ]; then
130
	echo ${SCRIPT} "GBE_MACHTYPE unknown.  Aborting."
130
	echo "${SCRIPT}: GBE_MACHTYPE unknown.  Aborting."
131
	exit 1
131
	exit 1
132
fi
132
fi
133
FLAG_MACHTYPE=${GBE_MACHTYPE}
133
FLAG_MACHTYPE=${GBE_MACHTYPE}
134
fi
134
fi
135
if [ "${FLAG_LIB}" = "" ]; then
135
if [ "${FLAG_LIB}" = "" ]; then
136
	echo ${SCRIPT} "You must specify a destination library.  Aborting."
136
	echo "${SCRIPT}: You must specify a destination library.  Aborting."
137
	exit 1
137
	exit 1
138
fi
138
fi
139
if [ $# -eq 0 ]; then
139
if [ $# -eq 0 ]; then
140
	echo ${SCRIPT} "You must specify one or source libraries.  Aborting."
140
	echo "${SCRIPT}: You must specify one or source libraries.  Aborting."
141
	exit 1
141
	exit 1
142
fi
142
fi
143
 
143
 
144
SOURCE_LIBS=""
144
SOURCE_LIBS=""
145
while [ "$1" != "" ]; do
145
while [ "$1" != "" ]; do
Line 164... Line 164...
164
	if [ "${FLAG_DIR}" = "" ]; then
164
	if [ "${FLAG_DIR}" = "" ]; then
165
		FLAG_DIR="."
165
		FLAG_DIR="."
166
	elif [ ! -d ${FLAG_DIR} ]; then
166
	elif [ ! -d ${FLAG_DIR} ]; then
167
		mkdir -p ${FLAG_DIR}
167
		mkdir -p ${FLAG_DIR}
168
		if [ ! -d ${FLAG_DIR} ]; then
168
		if [ ! -d ${FLAG_DIR} ]; then
169
			echo ${SCRIPT} "Unable to create target directory.  Aborting."
169
			echo "${SCRIPT}: Unable to create target directory.  Aborting."
170
			exit 1
170
			exit 1
171
		fi
171
		fi
172
	fi
172
	fi
173
    
173
    
174
	#.. Create a command file
174
	#.. Create a command file
Line 217... Line 217...
217
	if [ "${FLAG_DIR}" = "" ]; then
217
	if [ "${FLAG_DIR}" = "" ]; then
218
		FLAG_DIR="."
218
		FLAG_DIR="."
219
	elif [ ! -d ${FLAG_DIR} ]; then
219
	elif [ ! -d ${FLAG_DIR} ]; then
220
		mkdir -p ${FLAG_DIR}
220
		mkdir -p ${FLAG_DIR}
221
		if [ ! -d ${FLAG_DIR} ]; then
221
		if [ ! -d ${FLAG_DIR} ]; then
222
			echo ${SCRIPT} "Unable to create target directory.  Aborting."
222
			echo "${SCRIPT}: Unable to create target directory.  Aborting."
223
			exit 1
223
			exit 1
224
		fi
224
		fi
225
	fi
225
	fi
226
 
226
 
227
	#..     Extract objects
227
	#..     Extract objects