Magellan Linux

Contents of /trunk/polkit-kde-kcmodules/make-git-snapshot.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1431 - (show annotations) (download) (as text)
Thu Jul 21 21:35:18 2011 UTC (12 years, 9 months ago) by niro
File MIME type: application/x-sh
File size: 440 byte(s)
git snapshot script
1 #!/bin/sh
2
3 # Usage: ./make-git-snapshot.sh [COMMIT]
4 #
5 # to make a snapshot of the given tag/branch. Defaults to HEAD.
6
7 MODULE=polkit-kde-kcmodules-1
8 DIRNAME=${MODULE}-0.99.0_git$( date +%Y%m%d )
9
10 echo DIRNAME $DIRNAME
11 echo HEAD ${1:-HEAD}
12
13 rm -rf $DIRNAME
14
15 git clone git://anongit.kde.org/${MODULE}.git $DIRNAME
16
17 GIT_DIR=$DIRNAME/.git git archive --format=tar --prefix=$DIRNAME/ ${1:-HEAD} \
18 | bzip2 > $DIRNAME.tar.bz2
19
20 # rm -rf $DIRNAME