dpdk-snapshot.sh revision e0f06ca5
1#!/bin/bash
2
3snapgit=`git log --pretty=oneline -n1|cut -c1-8`
4snapser=`git log --pretty=oneline | wc -l`
5
6makever=`make showversion`
7basever=`echo ${makever} | cut -d. -f-2`
8
9prefix=dpdk-${basever}-${snapser}.git${snapgit}
10archive=${prefix}.tar.gz
11
12echo "Creating ${archive}"
13git archive --prefix=${prefix}/ HEAD  | gzip -9 > ${archive}
14