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