Skip to content
Permalink
30911fe8d7
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
88 lines (71 sloc) 2 KB
#!/bin/bash
#
#
# Copyright (C) 2009-2016
# Tobias Dreyer <dreyer@molgen.mpg.de>
# Marius Tolzmann <m@rius.berlin>
# and other bee developers
#
# This file is part of bee.
#
# bee is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
BEE_VERSION="@BEE_VERSION@"
: ${BEE_SYSCONFDIR:=@SYSCONFDIR@}
: ${BEE_DEFCONFDIR:=@DEFCONFDIR@}
: ${BEE_DATADIR:=@DATADIR@}
: ${BEE_LIBDIR:=@LIBDIR@}
: ${BEE_LIBEXECDIR:=@LIBEXECDIR@}
: ${BEE_BINDIR:=@BINDIR@}
. ${BEE_LIBEXECDIR}/bee/beelib.config.sh
: ${BEEGETOPT:=${BEE_BINDIR}/beegetopt}
function usage() {
cat <<EOF
beeissue v${BEE_VERSION} 2019
Usage: beeissue [options] pkgname
Options:
-h, --help display this help
EOF
}
###############################################################################
###############################################################################
###############################################################################
options=$(${BEEGETOPT} \
--name beeissue \
--option help/h \
-- "${@}")
if [ $? != 0 ] ; then
usage
exit 1
fi
eval set -- "${options}"
while true ; do
case "${1}" in
--help)
usage
exit 0
;;
--)
shift
break
;;
esac
done
if [ -z "${1}" ] ; then
print_error "beeissue: need pkgname"
exit 1
fi
config_init
pkgname="${1}"
grep -P "^${pkgname}\s" ${BEE_ISSUES}
exit 0