aboutsummaryrefslogtreecommitdiffstats
path: root/po
blob: 28736d915c2bcd7829838b51269a2a118d35d95f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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