pastebin - collaborative debugging tool
nrubsig.kpaste.net RSS


nfstest_gcc_build.ksh93
Posted by Anonymous on Tue 6th Feb 2024 11:35
raw | new post
view followups (newest first): nfstest_gcc_build.ksh93 by Anonymous

  1. #!/usr/bin/ksh93
  2.  
  3. set -o xtrace
  4. set -o errexit
  5.  
  6. #git clone -b 'releases/gcc-13.2.0' -c checkout.workers=8 git://gcc.gnu.org/git/gcc.git
  7. git clone -b 'releases/gcc-13.2.0' -c checkout.workers=8 https://github.com/gcc-mirror/gcc.git
  8.  
  9. cd $PWD/gcc/ || { sync ; sleep 5 ; cd gcc ; }
  10.  
  11. PATH="/usr/ast/bin:/opt/ast/bin:$PATH"
  12.  
  13. # Cygwin: workaround for configure using cp -p where ln -s should be used
  14. # (this is an automake/autoconf issue, they should trust Cygwin and not use
  15. # ancient workarounds for issues which no longer exists)
  16. (set -o xtrace ; sed -i "s/as_ln_s='cp -pR'/as_ln_s='ln -s'/g;s/\/bin\/sh/\/bin\/ksh93/g" $(find . -name configure) )
  17. ksh93 ./configure
  18. # workaround for $ cp -p # failing with "Function not implemented"
  19. (set -o xtrace ; sed -i -r 's/(cp.*)([[:space:]]+-p[[:space:]]+)/\1\2 -A pt /g;s/\/bin\/sh/\/bin\/ksh93/g' $(find . -name Makefile -o -name Makefile.in) )
  20.  
  21. ksh93 -c 'export SHELL=/bin/ksh93 ; (yes | make -j24 all)'
  22. echo $?
  23. echo "#Done."

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}




All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at