void-packages/srcpkgs/sagemath/patches/get_patches

37 lines
763 B
Bash
Executable File

#! /bin/sh
version=10.4
URL_BASE_PR="https://github.com/sagemath/sage/pull/"
URL_BASE_COMPARE="https://github.com/sagemath/sage/compare/${version}..."
case "$1" in
-n) dry=true ;;
esac
# get_pr <PR number> <description> [ext]
get_pr() {
pr=$1
desc=$(echo "$2" | sed -e 's/ /_/g')
ext=${3-diff}
url="$URL_BASE_PR$pr.$ext"
out="$pr-$desc.patch"
echo "curl -sL \"$url\" | filterdiff ... > \"$pr-$desc.patch\""
if [ -z "$dry" ]; then
curl -sL "$url" |
filterdiff -p1 -x src/setup.py -x build/* -x src/doc/* |
cat > "$pr-$desc.patch"
fi
}
# run from patches dir
cd $(dirname "$0")
get_pr 36641 "sympy 1.13"
get_pr 37884 "gap 4.13.1"
get_pr 38250 "numpy 2.0"
get_pr 38344 "ecm 7.0.6"
#get_pr 37645 "fix doctest"
#get_pr 37885 "cython warnings"