File: pycentral.rtinstall

package info (click to toggle)
python-central 0.6.16%2Bnmu1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 280 kB
  • ctags: 234
  • sloc: python: 2,585; perl: 522; sh: 135; makefile: 58
file content (13 lines) | stat: -rw-r--r-- 284 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
#! /bin/sh -e

cmd="$1"
runtime="$2"
oldversion="$3"
newverison="$4"

if which python >/dev/null 2>&1 && which pycentral >/dev/null 2>&1; then
    pycentral rtinstall --ignore-errors=yes $runtime
else
    echo >&2 "python or pycentral not found in $(basename $0) hook."
    exit 1
fi