CVS: moonbase/libs/slang POST_INSTALL,1.2,1.3

Terry Chan tchan at lunar-linux.org
Sat Oct 18 15:12:54 GMT 2003


Update of /var/cvs/lunar/moonbase/libs/slang
In directory dbguin.lunar-linux.org:/tmp/cvs-serv21806/slang

Modified Files:
	POST_INSTALL 
Log Message:
Added an existance test for ncurses.h and slang.h as internal to gcc.  gcc-3.3.1
seems to not include both of these .h files anymore as being internal so a 
test is needed.  Actually ncurses.h seems not to be internal anymore but the
test won't hurt so I added it to both slang and ncurses.


Index: POST_INSTALL
===================================================================
RCS file: /var/cvs/lunar/moonbase/libs/slang/POST_INSTALL,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- POST_INSTALL	15 Mar 2003 20:41:00 -0000	1.2
+++ POST_INSTALL	18 Oct 2003 15:12:52 -0000	1.3
@@ -16,11 +16,14 @@
 hostpath=${hostarch:0:$hostend-1}
 # build filename for location of slang.h
 filename="/usr/lib/gcc-lib/$hostpath/$gccver/include/slang.h"
-# gets slang version info from gcc's private slang.h
-gcc_slang=`grep "define SLANG_VERSION_STRING " $filename`
-gcc_slang_front=${gcc_slang#*\"}
-gcc_slang_ver=${gcc_slang_front%\"}
-if [ "$slangver" != "$gcc_slang_ver" ]
-then
-  lin -c gcc
-fi  
+# if file doesn't exist then we are done and its not internal to gcc
+if [ -e $filename ]; then
+  # gets slang version info from gcc's private slang.h
+  gcc_slang=`grep "define SLANG_VERSION_STRING " $filename`
+  gcc_slang_front=${gcc_slang#*\"}
+  gcc_slang_ver=${gcc_slang_front%\"}
+  if [ "$slangver" != "$gcc_slang_ver" ]
+  then
+    lin -c gcc
+  fi
+fi




More information about the Lunar-commits mailing list