Difference between
modified post 7a2d by Anonymous on Thu 29th Feb 2024 12:50
original post 19539ed1 by Anonymous on Mon 12th Feb 2024 15:52
Download diff
Show
old version |
new version |
both versions
| 1 | 1 | #!/usr/bin/ksh93 | |
| 2 | 2 | ||
| 3 | 3 | # | |
| 4 | 4 | # nfstest_gcc_build.ksh93 | |
| 5 | 5 | # | |
| 6 | 6 | # Simple NFSv4 torture test by building gcc in parallel | |
| 7 | 7 | # on a NFS filesystem | |
| 8 | 8 | # | |
| 9 | 9 | set -o xtrace | |
| 10 | 10 | set -o errexit | |
| 11 | + | set -o nounset | |
| 11 | 12 | ||
| 12 | 13 | # | |
| 13 | 14 | # build config | |
| 14 | 15 | # | |
| 15 | 16 | typeset config_cp_p_function_not_implemented_workaround=false | |
| 16 | 17 | typeset config_use_posix_ksh93_builtins=true | |
| 17 | 18 | ||
| 18 | 19 | # | |
| 19 | 20 | # source checkout | |
| 20 | 21 | # | |
| 21 | 22 | ||
| 22 | 23 | #time git -c checkout.workers=16 clone -b 'releases/gcc-13.2.0' --single-branch git://gcc.gnu.org/git/gcc.git | |
| 23 | 24 | #time git -c checkout.workers=16 clone -b 'releases/gcc-13.2.0' --single-branch https://github.com/gcc-mirror/gcc.git | |
| 24 | - | time git -c checkout.workers=16 clone -b 'releases/gcc-13.2.0' --single-branch git://repo.or.cz/gcc.git | |
| 25 | 25 | ||
| 26 | - | ||
| 26 | + | if [[ -f '../gcc.bundle' ]] ; then | |
| 27 | - | cd "$PWD/gcc/" || { sync ; sleep 5 ; cd gcc ; } | |
| 27 | + | # Use local bundle as cache | |
| 28 | - | ||
| 28 | + | # The bundle was created like this: | |
| 29 | - | if $config_use_posix_ksh93_builtins ; then | |
| 29 | + | # ---- snip ---- | |
| 30 | - | PATH="/usr/ast/bin:/opt/ast/bin:$PATH" | |
| 30 | + | # git clone git://repo.or.cz/gcc.git | |
| 31 | + | # cd gcc | |
| 31 | 39 | fi | |
| 32 | 40 | ||
| 41 | + | cd "$PWD/gcc/" | |
| 36 | 42 | ||
| 40 | - | (set -o xtrace ; sed -i "s/as_ln_s='cp -pR'/as_ln_s='ln -s'/g" $(find . -name 'configure') ) | |
| 41 | - | ||
| 43 | + | if $config_use_posix_ksh93_builtins ; then |
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.
nrubsig.kpaste.net RSS