#!/bin/sh -e case $1 in (*://*) cd "$(mktemp -d)" git clone "$1" cd "$(basename "${1%.git}")";; (*) cd "$1";; esac shift sudo checkinstall