Blame SOURCES/dpdk-snapshot.sh

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