11 lines
344 B
Plaintext
11 lines
344 B
Plaintext
|
#!/bin/bash
|
||
|
VERSION=$1
|
||
|
MAJRELEASE=`echo $VERSION | cut -dp -f1`
|
||
|
PATCHRELEASE=`echo $VERSION | cut -dp -f2`
|
||
|
> libmpfr-$VERSION-patchset.patch
|
||
|
for i in `seq 01 $PATCHRELEASE`; do
|
||
|
PATCHRELEASEFMT=`printf "%0*d\n" 2 $i`
|
||
|
curl -s http://mpfr.loria.fr/mpfr-current/patch$PATCHRELEASEFMT \
|
||
|
>> libmpfr-$VERSION-patchset.patch || exit 1
|
||
|
done
|