From 42ac22bc02c4d889be0ca4166b6186fc929f627f Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Mon, 17 Apr 2023 19:02:39 +0200 Subject: added targit! --- bin/common/targit | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 bin/common/targit (limited to 'bin/common/targit') diff --git a/bin/common/targit b/bin/common/targit new file mode 100755 index 0000000..ae046ac --- /dev/null +++ b/bin/common/targit @@ -0,0 +1,6 @@ +#!/bin/sh +pwd=$(pwd) +root="$(git rev-parse --show-toplevel)" +cd "$root" || exit 1 +file="$(basename "$root" | sed 's/^\.//').tar.gz" +tar czf "$pwd/$file" $(git ls-files) -- cgit v1.2.3