LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File splat-1.4.0_configure_noninteractive.diff of Package splat (Project hamradio)

diff -urN splat-1.4.0_orig/configure splat-1.4.0/configure
--- splat-1.4.0_orig/configure	2009-09-10 02:44:24.000000000 +0200
+++ splat-1.4.0/configure	2013-02-28 09:59:39.164974164 +0100
@@ -6,32 +6,32 @@
 #                        Last update: September 2009                         #
 ##############################################################################
 
-ans=""
+ans="5"
 whoami=`whoami`
 
-until [ "$ans" = "2" ] || [ "$ans" = "3" ] || [ "$ans" = "4" ] || [ "$ans" = "5" ] || [ "$ans" = "6" ] || [ "$ans" = "7" ] || [ "$ans" = "8" ]; do
-
-	clear
-	echo
-	echo -e "\t  ******************************************************"
-	echo -e "\t  **   SPLAT! Standard Resolution Mode Configuration  **"
-	echo -e "\t  ******************************************************\n"
-	echo -e "\t   Please select the Maximum Analysis Region capability"
-	echo -e "\t   you would like SPLAT! to possess when operating in"
-	echo -e "\t   3 arc-second (standard) resolution mode based on"
-	echo -e "\t   the amount of free memory available for SPLAT!:\n"
-	echo -e "\t   Maximum Analysis Region       RAM + Swap Requirement"
-	echo -e "\t   ====================================================\n"
-	echo -e "\t   (2)  2 x 2 Degrees  ---------   25 Megabytes minimum"
-	echo -e "\t   (3)  3 x 3 Degrees  ---------   52 Megabytes minimum"
-	echo -e "\t   (4)  4 x 4 Degrees  ---------   95 Megabytes minimum"
-	echo -e "\t   (5)  5 x 5 Degrees  ---------  145 Megabytes minimum"
-	echo -e "\t   (6)  6 x 6 Degrees  ---------  210 Megabytes minimum"
-	echo -e "\t   (7)  7 x 7 Degrees  ---------  285 Megabytes minimum"
-	echo -e "\t   (8)  8 x 8 Degrees  ---------  370 Megabytes minimum\n"
-	echo -n "Your choice: "
-	read ans
-done
+#until [ "$ans" = "2" ] || [ "$ans" = "3" ] || [ "$ans" = "4" ] || [ "$ans" = "5" ] || [ "$ans" = "6" ] || [ "$ans" = "7" ] || [ "$ans" = "8" ]; do
+#
+#	clear
+#	echo
+#	echo -e "\t  ******************************************************"
+#	echo -e "\t  **   SPLAT! Standard Resolution Mode Configuration  **"
+#	echo -e "\t  ******************************************************\n"
+#	echo -e "\t   Please select the Maximum Analysis Region capability"
+#	echo -e "\t   you would like SPLAT! to possess when operating in"
+#	echo -e "\t   3 arc-second (standard) resolution mode based on"
+#	echo -e "\t   the amount of free memory available for SPLAT!:\n"
+#	echo -e "\t   Maximum Analysis Region       RAM + Swap Requirement"
+#	echo -e "\t   ====================================================\n"
+#	echo -e "\t   (2)  2 x 2 Degrees  ---------   25 Megabytes minimum"
+#	echo -e "\t   (3)  3 x 3 Degrees  ---------   52 Megabytes minimum"
+#	echo -e "\t   (4)  4 x 4 Degrees  ---------   95 Megabytes minimum"
+#	echo -e "\t   (5)  5 x 5 Degrees  ---------  145 Megabytes minimum"
+#	echo -e "\t   (6)  6 x 6 Degrees  ---------  210 Megabytes minimum"
+#	echo -e "\t   (7)  7 x 7 Degrees  ---------  285 Megabytes minimum"
+#	echo -e "\t   (8)  8 x 8 Degrees  ---------  370 Megabytes minimum\n"
+#	echo -n "Your choice: "
+#	read ans
+#done
 
 # Build std-parms.h file that will be copied into splat.h at compilation time
 
@@ -69,34 +69,34 @@
 	echo "#define MAXPAGES 64" >> std-parms.h
 fi
 
-ans=""
+ans="5"
 
-until [ "$ans" = "0" ] || [ "$ans" = "1" ] || [ "$ans" = "2" ] || [ "$ans" = "3" ] || [ "$ans" = "4" ] || [ "$ans" = "5" ] || [ "$ans" = "6" ] || [ "$ans" = "7" ] || [ "$ans" = "8" ]; do
+#until [ "$ans" = "0" ] || [ "$ans" = "1" ] || [ "$ans" = "2" ] || [ "$ans" = "3" ] || [ "$ans" = "4" ] || [ "$ans" = "5" ] || [ "$ans" = "6" ] || [ "$ans" = "7" ] || [ "$ans" = "8" ]; do
 
-	clear
-	echo
-	echo -e "\t  ******************************************************"
-	echo -e "\t  **   SPLAT! HD High Resolution Mode Configuration   **"
-	echo -e "\t  ******************************************************\n"
-	echo -e "\t   Please select the Maximum Analysis Region capability"
-	echo -e "\t   you would like SPLAT! to possess when operating in"
-	echo -e "\t   1 arc-second (HD) resolution mode based on the amount"
-	echo -e "\t   of free memory available for SPLAT!  Selections 6, 7,"
-	echo -e "\t   and 8 are suitable for 64-BIT SYSTEMS ONLY:\n"
-	echo -e "\t   Maximum Analysis Region       RAM + Swap Requirement"
-	echo -e "\t   ====================================================\n"
-	echo -e "\t   (1)  1 x 1 Degrees  ---------   52 Megabytes minimum"
-	echo -e "\t   (2)  2 x 2 Degrees  ---------  225 Megabytes minimum"
-	echo -e "\t   (3)  3 x 3 Degrees  ---------  468 Megabytes minimum"
-	echo -e "\t   (4)  4 x 4 Degrees  ---------  855 Megabytes minimum"
-	echo -e "\t   (5)  5 x 5 Degrees  --------- 1305 Megabytes minimum"
-	echo -e "\t   (6)  6 x 6 Degrees  --------- 1890 Megabytes minimum"
-	echo -e "\t   (7)  7 x 7 Degrees  --------- 2565 Megabytes minimum"
-	echo -e "\t   (8)  8 x 8 Degrees  --------- 3330 Megabytes minimum"
-	echo -e "\t   (0)  None of the above.  Do not build SPLAT! HD.\n"
-	echo -n "Your choice: "
-	read ans
-done
+#	clear
+#	echo
+#	echo -e "\t  ******************************************************"
+#	echo -e "\t  **   SPLAT! HD High Resolution Mode Configuration   **"
+#	echo -e "\t  ******************************************************\n"
+#	echo -e "\t   Please select the Maximum Analysis Region capability"
+#	echo -e "\t   you would like SPLAT! to possess when operating in"
+#	echo -e "\t   1 arc-second (HD) resolution mode based on the amount"
+#	echo -e "\t   of free memory available for SPLAT!  Selections 6, 7,"
+#	echo -e "\t   and 8 are suitable for 64-BIT SYSTEMS ONLY:\n"
+#	echo -e "\t   Maximum Analysis Region       RAM + Swap Requirement"
+#	echo -e "\t   ====================================================\n"
+#	echo -e "\t   (1)  1 x 1 Degrees  ---------   52 Megabytes minimum"
+#	echo -e "\t   (2)  2 x 2 Degrees  ---------  225 Megabytes minimum"
+#	echo -e "\t   (3)  3 x 3 Degrees  ---------  468 Megabytes minimum"
+#	echo -e "\t   (4)  4 x 4 Degrees  ---------  855 Megabytes minimum"
+#	echo -e "\t   (5)  5 x 5 Degrees  --------- 1305 Megabytes minimum"
+#	echo -e "\t   (6)  6 x 6 Degrees  --------- 1890 Megabytes minimum"
+#	echo -e "\t   (7)  7 x 7 Degrees  --------- 2565 Megabytes minimum"
+#	echo -e "\t   (8)  8 x 8 Degrees  --------- 3330 Megabytes minimum"
+#	echo -e "\t   (0)  None of the above.  Do not build SPLAT! HD.\n"
+#	echo -n "Your choice: "
+#	read ans
+#done
 
 if [ "$ans" != "0" ]; then