summaryrefslogtreecommitdiff
path: root/dpdk-snapshot.sh
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-08-01 13:58:25 +0000
committerCoprDistGit <infra@openeuler.org>2024-08-01 13:58:25 +0000
commitcae37d9bca0e570b073ef5f99868899a5ce657e4 (patch)
treefd0f54be2cf4f51b5c8de43ebcc3958019a2a579 /dpdk-snapshot.sh
parentfd8bf98089672bf60badc5b31f8ba714436ffc51 (diff)
automatic import of dpdkopeneuler24.03_LTS
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}