23 lines
663 B
Bash
23 lines
663 B
Bash
|
#!/usr/bin/sh
|
||
|
|
||
|
set -e
|
||
|
|
||
|
if [[ -z "$1" ]]; then
|
||
|
echo "Please enter the version you want to update to";
|
||
|
exit 1;
|
||
|
fi
|
||
|
|
||
|
VERSION="$1"
|
||
|
|
||
|
echo "++++++++++++++++++++++++++++++++++++++++++++++"
|
||
|
echo "patching spec file and downloading the tarball"
|
||
|
echo "++++++++++++++++++++++++++++++++++++++++++++++"
|
||
|
|
||
|
sed -i -e 's|Version: .*|Version: '${VERSION}'|g' wine.spec
|
||
|
osc service mr download_files
|
||
|
curl -L -o wine-staging-${VERSION}.tar.gz https://github.com/wine-staging/wine-staging/archive/refs/tags/v${VERSION}.tar.gz
|
||
|
|
||
|
echo "++++++++++++++++++++++++++++++++++++++++++++++"
|
||
|
echo "Done! Have fun building and testing"
|
||
|
echo "++++++++++++++++++++++++++++++++++++++++++++++"
|