firefox/gen_cbindgen-vendor.sh
Eike Rathke db402b6ac7 Related: #2176587 Resync to rhel-8.8.0
... as of

    commit 2540e8d98fb2bfb0a180b23ad5cf815da231013d
    CommitDate: Tue Feb 14 12:12:33 2023 +0100

        Update to 102.8.0 build2
2023-03-27 22:34:14 +02:00

33 lines
482 B
Bash
Executable File

#!/bin/bash
set -x
# Dummy Cargo.toml file with cbindgen dependency
cat > Cargo.toml <<EOL
[package]
name = "dummy"
version = "0.0.1"
description = """
This is a dummy package which contains dependency on cbindgen
to be used with 'cargo vendor' commmand.
"""
[dependencies]
cbindgen = "0.23.0"
[[bin]]
name = "dummy"
path = "dummy.rs"
doc = false
EOL
cargo install cargo-vendor
cargo vendor
cd vendor
tar -cJf ../cbindgen-vendor.tar.xz *
cd ..
rm -f Cargo.toml
rm -rf vendor