1
0
mirror of https://github.com/php/systems.git synced 2026-03-23 23:32:12 +01:00
Files
archived-systems/install-colobus

18 lines
420 B
Bash
Executable File

#!/bin/sh
set -e
# "$@" passed to rsync so --dry-run works.
VERSION=${VERSION:-2.5}
DESTINATION=${DESTINATION:-/local/colobus}
WORKDIR=/tmp/install-colobus.$$
URL="https://github.com/jimwins/colobus/archive/refs/tags/${VERSION}.tar.gz"
mkdir -p ${WORKDIR}
cd ${WORKDIR}
curl -s -L -o install.tgz ${URL}
tar zxf install.tgz
rsync -aC "$@" --delete --delete-after colobus-${VERSION}/ ${DESTINATION}/
rm -rf ${WORKDIR}