added the generate archive from tags command - stagit - default description
(HTM) git clone git://thinkerwim.org/stagit.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit b0bf8d9a824ca2c63c6001b837e566b2c5a45037
(DIR) parent 3c590dcf157985bdc31e18de614bcd115b7c2163
(HTM) Author: Wim Stockman <wimstockman@gmail.com>
Date: Sun, 12 Mar 2023 08:05:36 +0100
added the generate archive from tags command
Diffstat:
A stagit-gen-archives-from-tags | 15 +++++++++++++++
1 file changed, 15 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/stagit-gen-archives-from-tags b/stagit-gen-archives-from-tags
@@ -0,0 +1,15 @@
+#!/bin/bash
+#usage stagit-gen-archives-from-tags repodir
+#Description generates git archives in de present directory/snapshot
+#Script made by Wim Stockman wim at thinkerwim dot org on
+#Created on 2023-03-12
+
+mkdir -p snapshot
+git tag > /tmp/taglist
+reponame=${PWD##*/}
+reponame=${reponame%.git*/}
+while read -r line;
+do
+git archive --format=tar.gz --prefix="$reponame-${line#v}/" $line > "/tmp/$reponame-${line#v}.tar.gz"
+done < "/tmp/taglist"
+