mirror of
https://github.com/void-linux/void-packages.git
synced 2025-09-24 20:55:15 +02:00
47 lines
1.1 KiB
Bash
Executable file
47 lines
1.1 KiB
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 37645 "fix doctest"
|
|
#get_pr 37885 "cython warnings"
|
|
|
|
get_pr 39145 "python 3.13 re.sub"
|
|
get_pr 39147 "python 3.13 doctest"
|
|
get_pr 39182 "python 3.13 iter"
|
|
get_pr 39184 "python 3.13 produce_latex_macro"
|
|
get_pr 39185 "python 3.13 find_replacements"
|
|
get_pr 39187 "python 3.13 tests output"
|
|
get_pr 39201 "python 3.13 fix spyx_tmp"
|
|
|
|
get_pr 38749 "pari 2.17"
|
|
get_pr 38962 "eclib 20241112"
|
|
get_pr 39178 "giac 1.9.0.998"
|
|
|
|
get_pr 38940 "fix flaky simplicial set test"
|
|
|
|
#get_pr 39142 "fix alarm tests"
|