#!/bin/bash git clone --no-single-branch https://github.com/raspberrypi/usbboot.git pushd usbboot git archive --prefix raspberrypi-rpiboot-$(git log --oneline|wc -l)/ -o ../raspberrypi-rpiboot-$(git log --oneline|wc -l).tar.gz origin/master popd rm -rf usbboot