File: releasescript.auto

package info (click to toggle)
python-memcache 1.57-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 360 kB
  • ctags: 313
  • sloc: python: 1,204; makefile: 43; sh: 19
file content (17 lines) | stat: -rwxr-xr-x 400 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
#
#  Run when the .tar file is created, updates the .spec file.

dir=`pwd`
rev=${dir##*-}

echo "Updating files to $rev"
sed --in-place 's/^Version: .*$/Version: '"$rev"/ PKG-INFO
sed --in-place 's/^__version__ .*$/__version__ = "'"$rev"'"/' memcache.py

pydoc -w ./memcache.py

rm -f releasescript.auto

python setup.py sdist bdist_wheel upload
rm -rf *.pyc dist python_memcached.egg-info