You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
336 B
14 lines
336 B
#!/bin/bash
|
|
|
|
snapgit=`git log --pretty=oneline -n1|cut -c1-8`
|
|
snapser=`git log --pretty=oneline | wc -l`
|
|
|
|
makever=`make showversion`
|
|
basever=`echo ${makever} | cut -d- -f1`
|
|
|
|
prefix=dpdk-${basever}-${snapser}.git${snapgit}
|
|
archive=${prefix}.tar.gz
|
|
|
|
echo "Creating ${archive}"
|
|
git archive --prefix=${prefix}/ HEAD | gzip -9 > ${archive}
|