diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/common/targit | 6 |
1 files changed, 6 insertions, 0 deletions
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) |