home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2J (Developer) / os42jdev.iso / NextDeveloper / Source / GNU / gcc / config / next / nextstep.config < prev    next >
Text File  |  1996-06-12  |  482b  |  22 lines

  1. #!/bin/sh
  2.  
  3. cat  libgcc?.c | awk '{print $1}'             \
  4.     | egrep '^__(float|fix|gcc|[a-z_]+[0-9])'    \
  5.     | sed 's,^_,,'                     \
  6.     | awk '{print "#define _" $1 " " $1}'        \
  7.     > config/next/nextstep.def
  8.  
  9. if [ -f optabs.c ]; then true; else
  10.   mv optabs.c.save optabs.c
  11. fi
  12.  
  13. if [ -f optabs.c.save ]; then true; else
  14.   mv optabs.c optabs.c.save
  15. fi
  16.  
  17. rm -f optabs.c.nextstep
  18. cat optabs.c.save | sed 's,"__,"_,g' >  optabs.c.nextstep
  19.  
  20. diff -DNEXT_LIBGCC_NAMES optabs.c.save optabs.c.nextstep > optabs.c
  21.  
  22.