Blame SOURCES/dpdk-snapshot.sh

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