#!/bin/bash # Use this script to make source tarball. git clone https://github.com/scipr-lab/libff.git cd libff version="1.0.0" git checkout "v${version}" 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}"