Blob Blame History Raw
#!/bin/bash

#snapgit=$(git log --pretty=oneline -n1|cut -c1-8)
snapdate=$(git log --pretty="%cd"  -n1 --date=short|sed -e "s:-::g")

#basever="0.0"

prefix=can-utils-${snapdate}git
archive=${prefix}.tar.gz

echo "Creating ${archive}"
git archive --prefix=${prefix}/ HEAD  | gzip -9 > ${archive}