1
0
mirror of https://github.com/pypiserver/pypiserver synced 2025-02-22 19:19:37 +01:00

Move standalone script into /bin.

This commit is contained in:
ankostis on tokoti 2015-09-13 23:10:00 +02:00
parent b124216a80
commit 73cb652130
4 changed files with 23 additions and 18 deletions

1
.gitignore vendored

@ -29,7 +29,6 @@ __pycache__/
/.coverage
/htmlcov/
/.installed.cfg
/bin/
/develop-eggs/
/eggs/
/parts/

23
bin/commit-standalone.sh Normal file

@ -0,0 +1,23 @@
#! /bin/sh
## Requires this script in your PATH:
## https://github.com/git/git/blob/master/contrib/workdir/git-new-workdir
## Invoke it with any arg to avoid committing into `standalone` branch.
my_dir="$(dirname "$0")"
cd $my_dir/..
gitversion=$(git describe --tags)
rm -rf .standalone
if nwd_dump=$( git-new-workdir . .standalone standalone 2>&1 ); then
./bin/gen-standalone.py
cp -p pypi-server-standalone.py .standalone
cd .standalone
if [ $# -lt 1 ]; then
git add .
git commit -m "add pypi-server-standalone $gitversion"
fi
else
echo "git-new-workdir: failed due to: $nwd_dump"
exit 1
fi

0
gen-standalone.py → bin/gen-standalone.py Executable file → Normal file

@ -1,17 +0,0 @@
#! /bin/sh
## Requires this script in your PATH:
## https://github.com/git/git/blob/master/contrib/workdir/git-new-workdir
gitversion=$(git describe --tags)
rm -rf .standalone
if nwd_dump=$( git-new-workdir . .standalone standalone 2>&1 ); then
./gen-standalone.py
cp -p pypi-server-standalone.py .standalone
cd .standalone
git add .
git ci -m "add pypi-server-standalone $gitversion"
else
echo "failed due to: $nwd_dump"
exit 1
fi