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