pantsbuild / binaries

A temporary home for pants static binaries and scripts
16 stars 37 forks source link

Fixup mac 10.13 binary symlinks. #37

Closed jsirois closed 7 years ago

jsirois commented 7 years ago

Done with:

$ find $PWD/build-support/bin -wholename "*/mac/10.12/*" -type f | {
  while read binary
  do
    newbin=${binary/\/10.12\//\/10.13\/}

    binary=$(basename ${newbin})
    newdir=$(dirname ${newbin})
    version=$(basename ${newdir})

    rm -rf ${newdir}
    mkdir -p ${newdir}
    cd ${newdir}
    ln -s ../../10.12/${version}/${binary}
  done
}

Fixes #35

jsirois commented 7 years ago

Tested this time with:

$ tar -tzf build-support/bin/go/mac/10.13/1.8.3/go.tar.gz | head
go/
go/AUTHORS
go/CONTRIBUTING.md
go/CONTRIBUTORS
go/LICENSE
go/PATENTS
go/README.md
go/VERSION
go/api/
go/api/README
jsirois commented 7 years ago

I'm going to TBR this.