~jontai/openvista-gtm-integration/bug497215

« back to all changes in this revision

Viewing changes to packages/rpm/fis-gtm-5.3004a_noninteractive-configure.patch

  • Committer: Jonathan Tai
  • Date: 2009-08-28 20:37:49 UTC
  • mfrom: (87.1.6 bug413322)
  • Revision ID: jon.tai@medsphere.com-20090828203749-3l0vm95vz3talj5y
Merge bug 413322 - Package GT.M 5.3004A

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--- configure.orig      2009-08-13 15:54:09.000000000 -0700
 
2
+++ configure   2009-08-13 15:59:38.000000000 -0700
 
3
@@ -123,7 +123,7 @@
 
4
 # create temporary file to test for valid user and group names
 
5
 touch tmp_owngrp
 
6
 $echo "What account should own the files? ($defowner) \c"
 
7
-read resp
 
8
+resp=""
 
9
 if [ "$resp" = "" ] ; then
 
10
        owner=$defowner
 
11
 else
 
12
@@ -137,10 +137,10 @@
 
13
 fi
 
14
 
 
15
 $echo "Should execution of GT.M be restricted to a group? (y or n) \c"
 
16
-read resp
 
17
+resp="y"
 
18
 if [ "$resp" = "Y" -o "$resp" = "y" ] ; then
 
19
        $echo "Enter group name: \c"
 
20
-       read group
 
21
+       group="gtm"
 
22
        if [ "$group" != "" ] ; then
 
23
                chgrp $group tmp_owngrp 2> /dev/null
 
24
                if [ 1 = "$?" ] ; then
 
25
@@ -156,7 +156,7 @@
 
26
 rm tmp_owngrp
 
27
 
 
28
 $echo "In what directory should GT.M be installed? \c"
 
29
-read gtmdist
 
30
+gtmdist="@GTM_DIST@"
 
31
 
 
32
 # if gtmdist is relative then need to make it absolute
 
33
 
 
34
@@ -182,7 +182,7 @@
 
35
        $echo "Directory $gtmdist does not exist. Do you wish to create it as part of"
 
36
        $echo "this installation? (y or n) \c"
 
37
 
 
38
-       read resp
 
39
+       resp="y"
 
40
        if [ "$resp" = "Y" -o "$resp" = "y" ] ; then
 
41
                mkdir -p $gtmdist
 
42
                chmod 0755 $gtmdist
 
43
@@ -226,14 +226,14 @@
 
44
                library_path="/usr/local/lib32 /usr/local/lib /usr/lib32 /usr/lib /lib32 /lib"
 
45
        fi
 
46
        $echo "Should unicode support be installed? (y or n) \c"
 
47
-       read resp
 
48
+       resp="y"
 
49
        if [ "$resp" = "Y" -o "$resp" = "y" ] ; then
 
50
                would_like_utf8=1
 
51
                $echo "Should an ICU version other than the default be used? (y or n) \c"
 
52
-               read resp
 
53
+               resp="y"
 
54
                if [ "$resp" = "Y" -o "$resp" = "y" ] ; then
 
55
                        $echo "Enter ICU version (at least ICU version 3.6 is required. Enter as <minor-ver>.<major-ver>): \c"
 
56
-                       read gtm_icu_version
 
57
+                       gtm_icu_version="@GTM_ICU_VERSION@"
 
58
                        icu_ver=`$echo $gtm_icu_version | sed 's/\.//'`
 
59
                        majmin=`$echo $icu_ver | cut -f 1 -d "."`
 
60
                        if [ "$majmin" -lt "36" ] ; then
 
61
@@ -600,7 +600,7 @@
 
62
 $echo "only the uppercase versions of the files."
 
63
 $echo ""
 
64
 $echo "Do you want uppercase and lowercase versions of the MUMPS routines? (y or n)\c"
 
65
-read resp
 
66
+resp="n"
 
67
 if [ "$resp" = "Y" -o "$resp" = "y" ] ; then
 
68
        $echo ""
 
69
        $echo "Creating lowercase versions of the MUMPS routines."
 
70
@@ -817,7 +817,7 @@
 
71
 $echo ""
 
72
 $echo "Installation completed. Would you like all the temporary files"
 
73
 $echo "removed from this directory? (y or n) \c"
 
74
-read resp
 
75
+resp="y"
 
76
 
 
77
 if [ "$resp" = "Y" -o "$resp" = "y" ] ; then
 
78
        \rm -rf $binaries $pathmods $rscripts $nscripts $dirs configure \