18 lines
388 B
Bash
Executable File
18 lines
388 B
Bash
Executable File
#!/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 upload
|
|
rm -rf *.pyc dist python_memcached.egg-info
|