Resolves: https://issues.redhat.com/browse/RHEL-121612 Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
34 lines
555 B
Bash
Executable File
34 lines
555 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -v
|
|
set -e
|
|
|
|
if test -z "$1"
|
|
then
|
|
echo "syntax: $0 VERSION"
|
|
exit 1
|
|
fi
|
|
|
|
VERSION=$1
|
|
PACKAGE=node-ffi-rs
|
|
AUTHOR=zhangyuang
|
|
GITURL=https://github.com/${AUTHOR}/${PACKAGE}
|
|
|
|
if ! test -d $PACKAGE
|
|
then
|
|
git clone $GITURL
|
|
fi
|
|
|
|
cd $PACKAGE
|
|
git checkout master
|
|
git reset --hard
|
|
git clean -f -x -d
|
|
git pull
|
|
|
|
git archive v${VERSION} -o ../node-ffi-rs-${VERSION}.tar.gz --prefix "node-ffi-rs-${VERSION}/"
|
|
|
|
git checkout v${VERSION}
|
|
|
|
cargo vendor-filterer --platform x86_64-unknown-linux-gnu
|
|
tar zcvf ../node-ffi-rs-${VERSION}-vendor.tar.gz vendor
|