CVS: moonbase/libs/ncurses 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/ncurses
In directory dbguin.lunar-linux.org:/tmp/cvs-serv21806/ncurses
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/ncurses/POST_INSTALL,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- POST_INSTALL 23 Nov 2002 06:59:43 -0000 1.2
+++ POST_INSTALL 18 Oct 2003 15:12:52 -0000 1.3
@@ -17,11 +17,14 @@
hostpath=${hostarch:0:$hostend-1}
# build filename for location of ncurses.h
filename="/usr/lib/gcc-lib/$hostpath/$gccver/include/ncurses.h"
-# gets ncurses version info from gcc's private ncurses.h
-gcc_ncurse=`grep "define NCURSES_VERSION " $filename`
-gcc_ncurse_front=${gcc_ncurse#*\"}
-gcc_ncurse_ver=${gcc_ncurse_front%\"}
-if [ "$ncursever" != "$gcc_ncurse_ver" ]
-then
- lin -c gcc
+# if file doesn't exist then we are done and its not internal to gcc
+if [ -e $filename ]; then
+ # gets ncurses version info from gcc's private ncurses.h
+ gcc_ncurse=`grep "define NCURSES_VERSION " $filename`
+ gcc_ncurse_front=${gcc_ncurse#*\"}
+ gcc_ncurse_ver=${gcc_ncurse_front%\"}
+ if [ "$ncursever" != "$gcc_ncurse_ver" ]
+ then
+ lin -c gcc
+ fi
fi
More information about the Lunar-commits
mailing list