diff options
author | Ron Olson <tachoknight@gmail.com> | 2020-04-14 15:07:39 -0500 |
---|---|---|
committer | Ron Olson <tachoknight@gmail.com> | 2020-04-14 15:07:39 -0500 |
commit | 8e62b80e958264b92e0804c336a1c2d8c461a2d0 (patch) | |
tree | d4ccd59108af39f8ea613155ecb091c283024b5b /justbuild-s390.sh | |
parent | 43fe7bf1ccdc651b37b9958e9a41bc9d67a1d4e9 (diff) | |
download | swift-lang-master.tar.gz swift-lang-master.tar.xz swift-lang-master.zip |
Diffstat (limited to 'justbuild-s390.sh')
-rwxr-xr-x | justbuild-s390.sh | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/justbuild-s390.sh b/justbuild-s390.sh new file mode 100755 index 0000000..bc7f4cb --- /dev/null +++ b/justbuild-s390.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +MYDIR=$PWD + +START_TS=`date` + +rm -rf $HOME/rpmbuild +rm -rf $MYDIR/mock-results +mkdir -p $HOME/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS} +cp $PWD/*.patch $HOME/rpmbuild/SOURCES +cp $PWD/swift-lang.spec $HOME/rpmbuild/SPECS + +pushd $HOME/rpmbuild/SPECS +spectool -g -R ./swift-lang.spec +# Now do the actual build +#mock --init --clean -r fedora-31-s390x --spec=swift-lang.spec --sources=../SOURCES --resultdir=$MYDIR/mock-results --buildsrpm --rebuild --rpmbuild-opts=--noclean --no-cleanup-after 2>&1 +mock --init --clean -r fedora-31-s390x --spec=swift-lang.spec --sources=../SOURCES --resultdir=$MYDIR/mock-results --buildsrpm +pushd $MYDIR/mock-results +mock -r fedora-31-s390x rebuild ./swift-lang-5.2.1-1.fc31.src.rpm +popd + +echo Started:_____$START_TS +echo Ended:_______`date` |