summaryrefslogtreecommitdiff
path: root/gen_cbindgen-vendor.sh
diff options
context:
space:
mode:
authorMartin Stransky <stransky@redhat.com>2018-10-19 12:41:15 +0200
committerMartin Stransky <stransky@redhat.com>2018-10-19 12:41:15 +0200
commit5a75318a402e438e920ab0da87918b22dd6449ae (patch)
tree0543815efbb40b9b3c1229308018649fbe9ca2a7 /gen_cbindgen-vendor.sh
parentAdded fixes for mozbz#1494037 and mozbz#1500366 (diff)
parentAdded cbindgen vendored data (diff)
downloadlibrewolf-fedora-ff-5a75318a402e438e920ab0da87918b22dd6449ae.tar.gz
librewolf-fedora-ff-5a75318a402e438e920ab0da87918b22dd6449ae.tar.bz2
librewolf-fedora-ff-5a75318a402e438e920ab0da87918b22dd6449ae.zip
Merge branch 'master' of ssh://pkgs.fedoraproject.org/rpms/firefox
Diffstat (limited to 'gen_cbindgen-vendor.sh')
-rwxr-xr-xgen_cbindgen-vendor.sh30
1 files changed, 30 insertions, 0 deletions
diff --git a/gen_cbindgen-vendor.sh b/gen_cbindgen-vendor.sh
new file mode 100755
index 0000000..906871e
--- /dev/null
+++ b/gen_cbindgen-vendor.sh
@@ -0,0 +1,30 @@
+#!/bin/bash
+# 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.6.3"
+
+[[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
+
bgstack15