Created
January 23, 2014 03:08
-
-
Save charz/8572172 to your computer and use it in GitHub Desktop.
Create a zip archive with git version
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
SRC=pkg-name | |
VER=`cd ${SRC}; git describe` | |
echo 'Try to pack: '${VER} | |
cp -a ${SRC} ${SRC}_v${VER} | |
tar czvf ${SRC}_v${VER}.tar.gz --exclude .git --exclude ".git*" ${SRC}_v${VER} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment