Newer
Older
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# This file is part of nexdatas - Tango Server for NeXus data writer
#
# Copyright (C) 2017-2017 DESY, Jan Kotanski <jkotan@mail.desy.de>
#
# nexdatas 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.
#
# nexdatas 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 nexdatas. If not, see <http://www.gnu.org/licenses/>.
#
for i in "${@:1}"
do
if [[ $i == -* ]] ; then
case $i in
-h=*|--help=*)
HELP=YES
;;
*)
# unknown option
;;
esac
else
export DEBPACKAGE=$1
fi
done
DEFRELEASE=jessie
if [[ ! -z $HELP ]] && [[ -z $DEBPACKAGE ]] ; then
echo "Error: DEB-PACKAGE-NAME argument is not defined"
fi
if [[ ! -z $HELP ]] || [[ -z $DEBPACKAGE ]] ; then
echo "usage: pidppush <DEB-PACKAGE-NAME> "
echo ""
echo "push the local debian package repository into stash."
echo " Please execute this command ONLY AFTER SUCCESSFUL TESTS"
echo " performed on the created debian package"
echo ""
echo "possible arguments:"
echo " DEB-PACKAGE-NAME debian package name (mandatory)"
echo ""
echo "examples:"
echo " pidppush python-nxstools-extras-p09"
echo ""
else
cd $DEBPACKAGE
git push --all --follow-tags
fi