deleted subcommands file ; changed pkg working directories ; moved commands to comman...
[opensuse:pack-tools.git] / commands / patchinfo
1 #!/bin/bash
2 #pkg patchinfo by dlovasko@suse.com
3
4 #un/comment for debug/release
5 set -x
6
7 #try to run osc patchinfo
8 osc patchinfo &> /dev/null
9 retcode=$?
10
11 if [ $retcode = "0" ] 
12 then
13         exit 0
14 else
15         if [ -e ./patchinfo/_patchinfo ]
16         then
17                 $EDITOR ./patchinfo/_patchinfo
18         else
19                 echo "This command must be called in a checked out project or patchinfo package."
20                 exit 1
21         fi
22 fi
23         
24