Blame SOURCES/dpdk-snapshot.sh

f185c7
#!/bin/bash
f185c7
f185c7
snapgit=`git log --pretty=oneline -n1|cut -c1-8`
f185c7
snapser=`git log --pretty=oneline | wc -l`
f185c7
f185c7
makever=`make showversion`
f185c7
basever=`echo ${makever} | cut -d- -f1`
f185c7
f185c7
prefix=dpdk-${basever}-${snapser}.git${snapgit}
f185c7
archive=${prefix}.tar.gz
f185c7
f185c7
echo "Creating ${archive}"
f185c7
git archive --prefix=${prefix}/ HEAD  | gzip -9 > ${archive}