Skip to content

Instantly share code, notes, and snippets.

@zofrex
Created April 21, 2016 11:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zofrex/7a0d1cf0332f6be799f1399763f8ec2e to your computer and use it in GitHub Desktop.
Save zofrex/7a0d1cf0332f6be799f1399763f8ec2e to your computer and use it in GitHub Desktop.
set -eux
./bootstrap.py --crate-index=/home/zofrex/crates --target-dir=/home/zofrex/cargo-out --no-clone --no-clean --target x86_64-unknown-openbsd --download || true
sed -i"" -e 's/\(\[\[test\]\]\) /\1\
/' ../cargo-out/url-0.5.9/Cargo.toml
sed -i -e 's/^\(miniz-sys.*\), optional = true/\1/' ../cargo-out/flate2-0.2.13/Cargo.toml
./bootstrap.py --crate-index=/home/zofrex/crates --target-dir=/home/zofrex/cargo-out --no-clone --no-clean --target x86_64-unknown-openbsd --download
sed -i -E -e 's/([^\/].*fs.*(remove_dir_all|create_dir_all).*)/\/\/\1/' ../cargo-out/libgit2-sys-0.4.2/build.rs
sed -i -E -e 's/([^\/].*fs.*(remove_dir_all|create_dir_all).*)/\/\/\1/' ../cargo-out/libgit2-sys-0.3.12/build.rs
sed -i"" -e 's/^rand.*version\([ ]*=[ ]*"[0-9.]*"\).*/rand\1/' ../cargo-out/uuid-0.2.0/Cargo.toml
./bootstrap.py --crate-index=/home/zofrex/crates --target-dir=/home/zofrex/cargo-out --no-clone --no-clean --target x86_64-unknown-openbsd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment