26 lines
557 B
Plaintext
26 lines
557 B
Plaintext
|
#!/bin/sh -e
|
||
|
|
||
|
if [ "$1" = "-v" -o "$1" = "--verbose" ]; then
|
||
|
VERBOSE='--verbose'
|
||
|
QUIET=
|
||
|
else
|
||
|
VERBOSE=
|
||
|
QUIET='--quiet'
|
||
|
fi
|
||
|
|
||
|
PIP="sudo -H -u ${user} PIP_CONFIG_FILE=${envpath}/pip.conf ${envpath}/bin/pip"
|
||
|
|
||
|
|
||
|
# upgrade pip
|
||
|
$PIP install $QUIET --upgrade pip
|
||
|
|
||
|
# upgrade rattail
|
||
|
cd ${envpath}/src/rattail
|
||
|
if [ "$(sudo -H -u ${user} git status --porcelain)" != '' ]; then
|
||
|
sudo -H -u ${user} git status
|
||
|
exit 1
|
||
|
fi
|
||
|
sudo -H -u ${user} git pull $QUIET
|
||
|
find . -name '*.pyc' -delete
|
||
|
$PIP install $QUIET --upgrade --upgrade-strategy eager --editable .
|