From 1dcc7213e3755b1dba8c334bfdf853e940f3118f Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Fri, 26 Apr 2019 17:16:32 +0200 Subject: feat(po): add po utility --- po | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 po (limited to 'po') diff --git a/po b/po new file mode 100755 index 0000000..28736d9 --- /dev/null +++ b/po @@ -0,0 +1,16 @@ +#!/bin/sh +if [ ! -d .osc ] ; then + echo 'This program must be run from an OBS project directory.' + exit 42 +fi + +if [ -f .osc/_packages ] ; then + apiurl=$(cat .osc/_apiurl) + project=$(cat .osc/_project) + xdg-open "${apiurl}/project/show/${project}" +else + apiurl=$(cat .osc/_apiurl) + project=$(cat .osc/_project) + package=$(cat .osc/_package) + xdg-open "${apiurl}/package/show/${project}/${package}" +fi -- cgit