source: git/git-archive @ 542685e

spielwiese
Last change on this file since 542685e was e44b658, checked in by Oleksandr Motsak <motsak@…>, 9 years ago
Added git-archive: shell script for generating tarballs of repository content rm: Minor cleanup chg: setting export-ignore attribute for unwanted repository items during git archive
  • Property mode set to 100755
File size: 375 bytes
Line 
1#!/bin/sh
2
3export GIT_WORK_TREE=`dirname "$0"`
4export GIT_DIR="$GIT_WORK_TREE/.git"
5
6ID=`$GIT_WORK_TREE/git-version-gen $GIT_WORK_TREE/.tarball-git-version`
7
8git archive --format tar.gz -v -o singular-$ID.tar.gz HEAD && echo "singular-$ID.tar.gz was generated from git repository at [$GIT_WORK_TREE]" || echo "Sorry could not generate archive for [$GIT_WORK_TREE] with '$0'"
Note: See TracBrowser for help on using the repository browser.