aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2023-01-08 10:00:59 -0500
committerB. Stack <bgstack15@gmail.com>2023-01-08 10:00:59 -0500
commit4574f3cce51d8efd47fc733f3bbb99b3b5a7d0bb (patch)
treef9804b2285d3caf831683a75c9eff24a0adb7d86
parentMerge branch 'build-3.24.31' into 'master' (diff)
downloadgtk3-classic-build-4574f3cce51d8efd47fc733f3bbb99b3b5a7d0bb.tar.gz
gtk3-classic-build-4574f3cce51d8efd47fc733f3bbb99b3b5a7d0bb.tar.bz2
gtk3-classic-build-4574f3cce51d8efd47fc733f3bbb99b3b5a7d0bb.zip
3.24.36
-rwxr-xr-xdeploy-to-obs.sh30
1 files changed, 30 insertions, 0 deletions
diff --git a/deploy-to-obs.sh b/deploy-to-obs.sh
new file mode 100755
index 0000000..25ef954
--- /dev/null
+++ b/deploy-to-obs.sh
@@ -0,0 +1,30 @@
+#!/bin/sh
+# Startdate: 2023-01-08-1 09:37
+# Purpose: make it a oneliner to get into the OBS
+# Reference:
+# ublock-origin-combined/deploy-to-obs.sh notepadpp d-to-o
+# Dependencies:
+# osc
+
+devdir=~/dev
+projectdir="${devdir}/gtk3-classic-build"
+obsdir="${devdir}/osc/home:bgstack15:gtk3-classic/gtk3-classic"
+
+# Flow
+cd "${projectdir}"
+"${projectdir}/gtk-classic-build-deb.sh"
+echo "DONE WITH gtk-classic-build-deb"
+tf="$( find . -maxdepth 1 -name 'gtk+3.0_*orig*z' -printf '%T@ %f\n' | sort -n -k1 | awk '{print $NF}' | tail -n1 )"
+dsc_file="$( find . -maxdepth 1 -name 'gtk+3.0_*dsc' -printf '%T@ %f\n' | sort -n -k1 | awk '{print $NF}' | tail -n1 | cut -d' ' -f2 )"
+debian_tar_file="$( find . -maxdepth 1 -name 'gtk+3.0_*debian*z' -printf '%T@ %f\n' | sort -n -k1 | awk '{print $NF}' | tail -n1 | cut -d' ' -f2 )"
+
+# prep obs
+cd "${obsdir}"
+osc up
+osc rm *
+cd "${projectdir}"
+cp -p "${dsc_file}" "${debian_tar_file}" "${tf}" "${obsdir}/"
+cd "${obsdir}"
+find . -mindepth 1 -maxdepth 1 ! -name '.osc' ! -name "${dsc_file}" ! -name "${debian_tar_file}" ! -name "${tf}" -delete
+osc add *
+osc commit # will prompt for commit name
bgstack15