summaryrefslogtreecommitdiff
path: root/dpdk-snapshot.sh
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-08-01 14:39:40 +0000
committerCoprDistGit <infra@openeuler.org>2024-08-01 14:39:40 +0000
commite3bcafd1e548a62873904880a699e9288dac9c3e (patch)
treefd0f54be2cf4f51b5c8de43ebcc3958019a2a579 /dpdk-snapshot.sh
parent00c6e84f21a8e4a92c8b92adc17ba8d95a028867 (diff)
automatic import of dpdkopeneuler24.03_LTSopeneuler23.09
Diffstat (limited to 'dpdk-snapshot.sh')
-rw-r--r--dpdk-snapshot.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/dpdk-snapshot.sh b/dpdk-snapshot.sh
new file mode 100644
index 0000000..0bae0d1
--- /dev/null
+++ b/dpdk-snapshot.sh
@@ -0,0 +1,13 @@
+#!/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}