aboutsummaryrefslogtreecommitdiffstats
path: root/goinit
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@cepl.eu>2023-07-12 09:59:47 +0200
committerMatěj Cepl <mcepl@cepl.eu>2024-10-07 11:02:07 +0200
commit5367f35944f25ebf45922b6ab179548163ad12af (patch)
tree5825c5aca66e8cb66607de1cc91c1742be686b81 /goinit
parentbe5732d5b4187fcefbba04c514d9f6cd06eb0a13 (diff)
downloadgosc-5367f35944f25ebf45922b6ab179548163ad12af.tar.gz
Add goinit script.
Diffstat (limited to 'goinit')
-rwxr-xr-xgoinit16
1 files changed, 16 insertions, 0 deletions
diff --git a/goinit b/goinit
new file mode 100755
index 0000000..dc5479c
--- /dev/null
+++ b/goinit
@@ -0,0 +1,16 @@
+#!/bin/sh
+set -eux
+
+if [ -d .osc ] ; then
+ exit 0
+fi
+
+# We actually want to ignore it (for now?)
+echo '/.osc/' >>.git/info/exclude
+
+mkdir -p .osc
+echo 'https://api.opensuse.org' >.osc/_apiurl
+basename "$(pwd)" >.osc/_package
+echo '1.0' >.osc/_osclib_version
+echo 'openSUSE:Factory' >.osc/_project
+echo "$(git remote get-url $(git remote|head -n1))#factory" >.osc/_scm