From: <wsh...@us...> - 2003-08-29 19:23:44
|
Update of /cvsroot/emc/rcslib/etc In directory sc8-pr-cvs1:/tmp/cvs-serv17001/etc Modified Files: Tag: wps_multiplat_dev_branch multiplatbuild.sh Log Message: . Index: multiplatbuild.sh =================================================================== RCS file: /cvsroot/emc/rcslib/etc/Attic/multiplatbuild.sh,v retrieving revision 1.1.2.6 retrieving revision 1.1.2.7 diff -C2 -d -r1.1.2.6 -r1.1.2.7 *** multiplatbuild.sh 29 Aug 2003 14:07:28 -0000 1.1.2.6 --- multiplatbuild.sh 29 Aug 2003 19:23:36 -0000 1.1.2.7 *************** *** 37,49 **** fi if test "x${CC}" = "x" ; then ! if qcc -v >/dev/null 2>/dev/null ; then CC=qcc; ! elif gcc -v >/dev/null 2>/dev/null ; then CC=gcc; ! elif /usr/bin/gcc -v >/dev/null 2>/dev/null ; then CC=/usr/bin/gcc; ! elif cc -v >/dev/null 2>/dev/null ; then CC=cc; fi --- 37,82 ---- fi + if test -f /tmp/tailtest.txt ; then + \rm -f /tmp/tailtest.txt >/dev/null 2>/dev/null; + fi + + cat >/tmp/tailtest.txt <<EOF + 1 + 2 + 3 + EOF + + if test "x${TAIL1}" = "x" ; then + if cat /tmp/tailtest.txt | tail -n 1 >/dev/null 2>/dev/null ; then + if test 3 = `cat /tmp/tailtest.txt | tail -n 1 2>/dev/null` ; then + TAIL1='tail -n 1' + fi + fi + fi + + if test "x${TAIL1}" = "x" ; then + if cat /tmp/tailtest.txt | tail -1 >/dev/null 2>/dev/null ; then + if test 3 = `cat /tmp/tailtest.txt | tail -1 2>/dev/null` ; then + TAIL1='tail -1' + fi + fi + fi + + if test "x${TAIL1}" = "x" ; then + TAIL1='tail -n 1' + fi + + if test -f /tmp/tailtest.txt ; then + \rm -f /tmp/tailtest.txt >/dev/null 2>/dev/null; + fi if test "x${CC}" = "x" ; then ! if ( qcc -v ) >/dev/null 2>/dev/null ; then CC=qcc; ! elif ( gcc -v ) >/dev/null 2>/dev/null ; then CC=gcc; ! elif ( /usr/bin/gcc -v ) >/dev/null 2>/dev/null ; then CC=/usr/bin/gcc; ! elif ( cc -v ) >/dev/null 2>/dev/null ; then CC=cc; fi *************** *** 51,55 **** ! CC_NAME=`echo ${CC}_\`${CC} -v 2>&1 | tail -n 1 \` | sed 'y# #_#' | sed 'y#-#_#' | sed 'y#:#_#' | sed 'y#(#_#' | sed 'y#)#_#' | sed 's#gcc_gcc#gcc#g' | sed 's#${CC}_${CC}#${CC}#g' | sed 'y#,#_#' | sed 'y#.#_#'` UNAME_S=`uname -s | sed 'y# #_#' | sed 'y#-#_#' | sed 'y#:#_#' | sed 'y#(#_#' | sed 'y#)#_#' | sed 'y#,#_#' | sed 'y#.#_#'` UNAME_R=`uname -r | sed 'y# #_#' | sed 'y#-#_#' | sed 'y#:#_#' | sed 'y#(#_#' | sed 'y#)#_#' | sed 'y#,#_#' | sed 'y#.#_#'` --- 84,88 ---- ! CC_NAME=`echo ${CC}_\`${CC} -v 2>&1 | ${TAIL1} \` | sed 'y# #_#' | sed 'y#-#_#' | sed 'y#:#_#' | sed 'y#(#_#' | sed 'y#)#_#' | sed 's#gcc_gcc#gcc#g' | sed 's#${CC}_${CC}#${CC}#g' | sed 'y#,#_#' | sed 'y#.#_#'` UNAME_S=`uname -s | sed 'y# #_#' | sed 'y#-#_#' | sed 'y#:#_#' | sed 'y#(#_#' | sed 'y#)#_#' | sed 'y#,#_#' | sed 'y#.#_#'` UNAME_R=`uname -r | sed 'y# #_#' | sed 'y#-#_#' | sed 'y#:#_#' | sed 'y#(#_#' | sed 'y#)#_#' | sed 'y#,#_#' | sed 'y#.#_#'` *************** *** 299,303 **** fi ! if test -e ${rcsdir}/.lastbuild ; then (cd ${rcsdir} ; mv .lastbuild .lastbuild.$$ ) >/dev/null 2>/dev/null; fi --- 332,336 ---- fi ! if test -d ${rcsdir}/.lastbuild ; then (cd ${rcsdir} ; mv .lastbuild .lastbuild.$$ ) >/dev/null 2>/dev/null; fi *************** *** 398,402 **** fi ! if test -e ${rcsdir}/lib ; then (cd ${rcsdir} ; mv lib .lib.$$ ) >/dev/null 2>/dev/null; fi --- 431,435 ---- fi ! if test -d ${rcsdir}/lib ; then (cd ${rcsdir} ; mv lib .lib.$$ ) >/dev/null 2>/dev/null; fi *************** *** 410,414 **** fi ! if test -e ${rcsdir}/bin ; then (cd ${rcsdir} ; mv bin .bin.$$ ) >/dev/null 2>/dev/null; fi --- 443,447 ---- fi ! if test -d ${rcsdir}/bin ; then (cd ${rcsdir} ; mv bin .bin.$$ ) >/dev/null 2>/dev/null; fi *************** *** 422,426 **** fi ! if test -e ${rcsdir}/include ; then (cd ${rcsdir} ; mv include .include.$$ ) >/dev/null 2>/dev/null; fi --- 455,459 ---- fi ! if test -d ${rcsdir}/include ; then (cd ${rcsdir} ; mv include .include.$$ ) >/dev/null 2>/dev/null; fi |