summaryrefslogtreecommitdiff
path: root/setup_native/scripts
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2007-11-02 11:51:56 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2007-11-02 11:51:56 +0000
commit8bc12363404046ba7ff2807dc6fd6e2ca8f3da3d (patch)
tree6b067b5e97b3920864a8e5cf5f06c92da46cd3d7 /setup_native/scripts
parented24c791237a2a008663ff944928e422c46932cb (diff)
INTEGRATION: CWS native115_SRC680 (1.2.26); FILE MERGED
2007/10/29 14:19:05 obr 1.2.26.3: #i83083# fixed wrong path on Linux 2007/10/17 12:10:09 obr 1.2.26.2: #150889# now works on Linux as well 2007/10/17 10:45:44 obr 1.2.26.1: #150890# retry at next office launch if stclient not found
Diffstat (limited to 'setup_native/scripts')
-rw-r--r--setup_native/scripts/stclient_wrapper.sh33
1 files changed, 16 insertions, 17 deletions
diff --git a/setup_native/scripts/stclient_wrapper.sh b/setup_native/scripts/stclient_wrapper.sh
index e934e44ce2ef..c361237132ee 100644
--- a/setup_native/scripts/stclient_wrapper.sh
+++ b/setup_native/scripts/stclient_wrapper.sh
@@ -4,7 +4,11 @@
# All rights reserved.
#
-STCLIENT=/usr/bin/stclient
+if [ `uname -s` = "SunOS" ]; then
+ STCLIENT=/usr/bin/stclient
+else
+ STCLIENT=/opt/sun/servicetag/bin/stclient
+fi
TARGET_URN=
PRODUCT_NAME=
@@ -30,26 +34,21 @@ do
shift
done
-if [ -x "$STCLIENT" ]; then
- INSERT="false"
-
- TEST=`${STCLIENT} -f -t ${TARGET_URN}`
+[ -x "$STCLIENT" ] || exit 1
- if [ "${TEST}" = "No records found" ]; then
- INSERT="true"
- fi
+TEST=`${STCLIENT} -f -t ${TARGET_URN}` || exit 1
+[ "${TEST}" = "No records found" ] || exit 0
- if [ "${INSERT}" = "true" ]; then
- if [ `uname -s` = "SunOS" ]; then
- uname=`uname -p`
- zone="global"
- if [ -x /usr/bin/zonename ]; then
- zone=`/usr/bin/zonename`
- fi
+uname=`uname -p`
+zone="global"
- output=`${STCLIENT} -a -p "${PRODUCT_NAME}" -e "${PRODUCT_VERSION}" -t "${TARGET_URN}" -S "${PRODUCT_SOURCE}" -P "${PARENT_PRODUCT_NAME}" -m "Sun Microsystems, Inc." -A ${uname} -z global`
- fi
+if [ `uname -s` = "SunOS" ]; then
+ if [ -x /usr/bin/zonename ]; then
+ zone=`/usr/bin/zonename`
fi
fi
+output=`"${STCLIENT}" -a -p "${PRODUCT_NAME}" -e "${PRODUCT_VERSION}" -t "${TARGET_URN}" -S "${PRODUCT_SOURCE}" -P "${PARENT_PRODUCT_NAME}" -m "Sun Microsystems, Inc." -A "${uname}" -z "${zone}"` || exit 1
+
exit 0
+