update.sh (9f22d7c2) update.sh (ff3f4ebc)
1#!/bin/sh
2# *************************************************************
3#
4# Licensed to the Apache Software Foundation (ASF) under one
5# or more contributor license agreements. See the NOTICE file
6# distributed with this work for additional information
7# regarding copyright ownership. The ASF licenses this file
8# to you under the Apache License, Version 2.0 (the

--- 44 unchanged lines hidden (view full) ---

53
54}
55
56#
57# make_command_file - generate a command file to pass to xterm & co
58#
59run_in_terminal () {
60
1#!/bin/sh
2# *************************************************************
3#
4# Licensed to the Apache Software Foundation (ASF) under one
5# or more contributor license agreements. See the NOTICE file
6# distributed with this work for additional information
7# regarding copyright ownership. The ASF licenses this file
8# to you under the Apache License, Version 2.0 (the

--- 44 unchanged lines hidden (view full) ---

53
54}
55
56#
57# make_command_file - generate a command file to pass to xterm & co
58#
59run_in_terminal () {
60
61 TMPCMD=`make_tempfile 'OpenOffice.org-Online-Update'`
61 TMPCMD=`make_tempfile 'Apache_OpenOffice-Online-Update'`
62
63 cat >> $TMPCMD
64
65 cat >> $TMPCMD << \EOF
66if [ $? -eq 0 -a ! -z "$DISPLAY" ]; then
67 echo
68 echo "Press <Enter> to close this window"
69 read DUMMY

--- 44 unchanged lines hidden (view full) ---

114 ( echo "echo The application \"$@\" will update your ${PRODUCTNAME} installation."
115 echo "echo"
116 echo "$SU" "$SUOPT" "$@"
117 ) | run_in_terminal "$XTERM" "$TITLEOPT" "$TITLE" ${GEOMOPT}+300+300
118}
119
120
121update_pkg() {
62
63 cat >> $TMPCMD
64
65 cat >> $TMPCMD << \EOF
66if [ $? -eq 0 -a ! -z "$DISPLAY" ]; then
67 echo
68 echo "Press <Enter> to close this window"
69 read DUMMY

--- 44 unchanged lines hidden (view full) ---

114 ( echo "echo The application \"$@\" will update your ${PRODUCTNAME} installation."
115 echo "echo"
116 echo "$SU" "$SUOPT" "$@"
117 ) | run_in_terminal "$XTERM" "$TITLEOPT" "$TITLE" ${GEOMOPT}+300+300
118}
119
120
121update_pkg() {
122 ADMINFILE=`make_tempfile 'OpenOffice.org-Online-Update-admin'`
122 ADMINFILE=`make_tempfile 'Apache_OpenOffice-Online-Update-admin'`
123
124cat >> $ADMINFILE << EOF
125action=nocheck
126conflict=nocheck
127setuid=nocheck
128idepend=nocheck
129rdepend=nocheck
130mail=

--- 85 unchanged lines hidden ---
123
124cat >> $ADMINFILE << EOF
125action=nocheck
126conflict=nocheck
127setuid=nocheck
128idepend=nocheck
129rdepend=nocheck
130mail=

--- 85 unchanged lines hidden ---