summaryrefslogtreecommitdiffstats
path: root/justbuild.sh
diff options
context:
space:
mode:
Diffstat (limited to 'justbuild.sh')
-rwxr-xr-xjustbuild.sh24
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`