🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #200

fixincludes on xmu.h problem with gcc 2.2.2?

#200
From: Marty Leisner 311/? x?
Date: Fri, 24 Jul 1992 17:07
44 lines
1573 bytes
Fixincludes with gcc2.2.2 seems have a problem with Xmu.h

I think Xmu.h is in X11/Xmu/Xmu.h, not X11/Xmu.h

Here's the diff:
***************
*** 361,370 ****
    fi
  fi
  
! # Incorrect sprintf declaration in X11/Xmu.h
! file=X11/Xmu.h
  if [ -r $file ] && [ ! -r ${LIB}/$file ]; then
!   mkdir ${LIB}/X11 2>/dev/null
    cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file"
    chmod +w ${LIB}/$file 2>/dev/null
  fi
--- 361,370 ----
    fi
  fi
  
! # Incorrect sprintf declaration in X11/Xmu/Xmu.h
! file=X11/Xmu/Xmu.h
  if [ -r $file ] && [ ! -r ${LIB}/$file ]; then
!   mkdir -p ${LIB}/X11/Xmu 2>/dev/null
    cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file"
    chmod +w ${LIB}/$file 2>/dev/null
  fi


Also, I'm not an expert on shell scripts, but doing
#!/bin/sh -vx 
should turn on the v and x options...

In fixincludes, it didn't but:
set -v
set -x
on seperate lines worked (I'm using SunOS 4.1.2).
 

--
marty
leisner.henr801c@xerox.com  
Member of the League for Programming Freedom
Technical Details
Message-ID: <1992Jul24.170726.8245@spectrum.xerox.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!trianguli.wrc.xerox.COM!leisner

Show Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!trianguli.wrc.xerox.COM!leisner
From: leisner@trianguli.wrc.xerox.COM (Marty Leisner 311/? x?)
Subject: fixincludes on xmu.h problem with gcc 2.2.2?
Message-ID: <1992Jul24.170726.8245@spectrum.xerox.com>
Sender: gnulists@ai.mit.edu
Reply-To: leisner.henr801c@xerox.com
Organization: Xerox
Distribution: gnu
Date: Fri, 24 Jul 1992 17:07:26 GMT
Approved: bug-gcc@prep.ai.mit.edu
Lines: 45