forked from zenoss/pynetsnmp
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpkg
executable file
·37 lines (36 loc) · 1.1 KB
/
pkg
1
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
#! /bin/sh
#
# Script used by the Zenoss Dev team (the authors of pynetsnmp) to
# release and deploy updated versions. First, go edit version.py
# and update the VERSION value.
#
# Run this script. This will generate a tarball in the parent
# directory (..). Move this script to your zenoss inst/externallibs
# directory and remove the old tarball and add the new one:
#
# $ svn remove pynetsnmp-OLDVERSION.tar.gz
# $ svn add pynetsnmp-NEWVERSION.tar.gz
#
# Then you are set to re-release Zenoss.
#
quit() {
echo $@
exit 1
}
PACKAGE=pynetsnmp
VERSION=`python -c 'import version; print version.VERSION'`
VPACKAGE=$PACKAGE-$VERSION
SVN=http://dev.zenoss.org/svnint
SVNTRUNK=$SVN/trunk/core/$PACKAGE
SVNTAG=$SVN/tags/core/$VPACKAGE
svn cp -m"making release $VERSION" $SVNTRUNK $SVNTAG || quit cannot create tag
svn export $SVNTAG /tmp/$VPACKAGE || quit cannot create export tree
OLD=`pwd`
(
cd /tmp
tar -czvf $OLD/../$VPACKAGE.tar.gz $VPACKAGE
rm -rf $VPACKAGE
) || quit cannot create tarball
echo "Remember to move ../$VPACKAGE.tar.gz the Zenoss "
echo "inst/externallibs directory and check it in."
exit 0