File cargo_vendor.bash of Package proxmox-biome

#! /bin/bash

# get vendor tarball for io-crates dependencies
tempdir="/tmp/.get_tarball_tempdir"
targetdir="$PWD"
if [ -d "$tempdir" ]; then
  rm -rf "$tempdir"
fi
mkdir "$tempdir"
pushd "$tempdir"
tar -xzf "$targetdir/proxmox-biome.tar.gz"
pushd proxmox-biome
patch -p1 "$tempdir/proxmox-biome/biome/.cargo/" "$targetdir/vendor.patch"
cargo vendor --manifest-path "$tempdir/proxmox-backup/Cargo.toml" 
if [ -f "$targetdir/vendor.tar.gz" ]; then
  rm "$targetdir/vendor.tar.gz"
fi
tar -cvzf "$targetdir/vendor.tar.gz" vendor
popd
popd
#rm -rf "$tempdir"
openSUSE Build Service is sponsored by