2010-09-21 23:17:05 +00:00
|
|
|
all:
|
2020-07-18 00:12:46 +00:00
|
|
|
perl -e 'exit $$ENV{YYYYMMDD} !~ /20/'
|
2010-12-02 23:04:12 +00:00
|
|
|
cd ../debian/ && make
|
2022-05-23 19:31:44 +00:00
|
|
|
osc rm home-tange/parallel/parallel_*.dsc || true
|
|
|
|
cp ../debian/parallel_*.dsc ../debian/parallel_*.tar.gz home-tange/parallel/
|
|
|
|
cp `ls ../../parallel-2*.tar.bz2|grep -v latest|tail -n1` home-tange/parallel/
|
2023-09-24 22:07:47 +00:00
|
|
|
cp `ls ../../parallel-2*.tar.bz2.sig|grep -v latest|tail -n1` home-tange/parallel/
|
2022-05-23 19:31:44 +00:00
|
|
|
perl -i -pe '/Version:/ and s/20\d\d\d\d\d\d/$$ENV{YYYYMMDD}/g' home-tange/parallel/parallel.spec
|
2023-09-24 22:07:47 +00:00
|
|
|
cd home-tange/parallel && make
|
|
|
|
|
|
|
|
dummy:
|
2020-08-07 20:20:30 +00:00
|
|
|
# Update sha256sum
|
2022-05-23 19:31:44 +00:00
|
|
|
cd home-tange/parallel && s=`sha256sum parallel-*.tar.bz2|field 1` perl -i -pe 's/(sha256sums=..)\w+(..)/$$1$$ENV{s}$$2/' PKGBUILD
|
2020-08-07 20:20:30 +00:00
|
|
|
# Update version
|
2022-05-23 19:31:44 +00:00
|
|
|
cd home-tange/parallel && perl -i -pe 's/pkgver=.*/pkgver=$$ENV{YYYYMMDD}/' PKGBUILD
|
|
|
|
cd home-tange/parallel/ && osc diff
|
|
|
|
cd home-tange/parallel/ && osc up
|
|
|
|
cd home-tange/parallel/ && parallel osc add ::: *.spec *.dsc *.tar.gz *.tar.bz2 && echo Src added OK || true
|
|
|
|
cd home-tange/parallel/ && osc ci -m "New release"
|
2021-02-17 14:49:47 +00:00
|
|
|
### Wait for "building" state to complete
|
|
|
|
echo '### Wait for "building" state'
|
2023-03-22 23:32:13 +00:00
|
|
|
sleep 3
|
2022-05-23 19:31:44 +00:00
|
|
|
cd home-tange/parallel/ && yes building | parallel -vj1 --delay 10 --halt now,success=1 'osc results|G -E {}'
|
2021-02-17 14:49:47 +00:00
|
|
|
echo '### Wait for "building" state to end'
|
|
|
|
echo '### Ignore RedHat_RHEL-6 and Univention_3.2 that are broken'
|
2022-05-23 19:31:44 +00:00
|
|
|
cd home-tange/parallel/ && yes building | parallel -vj1 --delay 10 --halt now,fail=1 'osc results|G -v RedHat_RHEL-6 -v Univention_3.2 -E {}' || true
|
2021-02-17 14:49:47 +00:00
|
|
|
echo '### Wait for "finished" state of .deb'
|
2022-05-23 19:31:44 +00:00
|
|
|
cd home-tange/parallel/ && echo succeeded | parallel -vj1 --retries 30 --delay 10 --halt now,success=1 'osc results|G -E "(Debian|Ubuntu).*{}"'
|
2021-02-17 14:49:47 +00:00
|
|
|
echo '### Wait for "finished" state of .rpm'
|
2022-05-23 19:31:44 +00:00
|
|
|
cd home-tange/parallel/ && echo succeeded | parallel -vj1 --retries 30 --delay 10 --halt now,success=1 'osc results|G -E "(SUSE|SLE|Scientific|RHEL|Fedora|CentOS).*{}"'
|
2023-03-22 23:32:13 +00:00
|
|
|
echo 'Check:'
|
|
|
|
echo 'https://build.opensuse.org/package/show/home:tange/parallel'
|