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.sh | |
parent | 43fe7bf1ccdc651b37b9958e9a41bc9d67a1d4e9 (diff) | |
download | swift-lang-8e62b80e958264b92e0804c336a1c2d8c461a2d0.tar.gz swift-lang-8e62b80e958264b92e0804c336a1c2d8c461a2d0.tar.xz swift-lang-8e62b80e958264b92e0804c336a1c2d8c461a2d0.zip |
Diffstat (limited to 'justbuild.sh')
-rwxr-xr-x | justbuild.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/justbuild.sh b/justbuild.sh new file mode 100755 index 0000000..d92c03e --- /dev/null +++ b/justbuild.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +MYDIR=$PWD + +START_TS=`date` + +rm -rf /home/rolson/rpmbuild +rm $MYDIR/build-output.txt +mkdir -p /home/rolson/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS} +cp $PWD/*.patch /home/rolson/rpmbuild/SOURCES +cp $PWD/*.conf /home/rolson/rpmbuild/SOURCES +cp $PWD/swift-lang.spec /home/rolson/rpmbuild/SPECS + +pushd /home/rolson/rpmbuild/SPECS +spectool -g -R ./swift-lang.spec +# Get the dependencies +dnf builddep -y ./swift-lang.spec +# Now do the actual build +rpmbuild -ba ./swift-lang.spec 2>&1 | tee $MYDIR/build-output.txt +#rpmbuild -bc ./swift-lang.spec 2>&1 | tee $MYDIR/build-output.txt +popd + +echo Started:_____$START_TS +echo Ended:_______`date` |