2019-02-14 08:04:34 +00:00
|
|
|
#!/bin/bash
|
|
|
|
# Use this script to make source tarball.
|
|
|
|
|
|
|
|
git clone https://github.com/scipr-lab/libff.git
|
|
|
|
cd libff
|
|
|
|
|
2021-02-05 06:54:29 +00:00
|
|
|
version="1.0.0"
|
|
|
|
git checkout "v${version}"
|
2019-02-14 08:04:34 +00:00
|
|
|
|
|
|
|
rm -rf .git*
|
|
|
|
|
|
|
|
# see 00_no_bn128.patch
|
|
|
|
rm -r depends
|
|
|
|
rm -r libff/algebra/curves/bn128
|
|
|
|
rm libff/algebra/scalar_multiplication/multiexp_profile.cpp
|
|
|
|
|
|
|
|
find . -type f -exec chmod -x {} +
|
|
|
|
|
|
|
|
cd ..
|
|
|
|
mv libff "libff-${version}"
|
|
|
|
tar -caf "libff-${version}.tar.xz" "libff-${version}"
|
|
|
|
|
|
|
|
rm -r "libff-${version}"
|