Tizen 2.0 Release
[framework/uifw/xorg/util/x11-utils.git] / make-edid-decode-snapshot.sh
1 #!/bin/sh
2
3 DIRNAME=edid-decode-$( date +%Y%m%d )
4
5 rm -rf $DIRNAME
6 git clone git://git.freedesktop.org/git/xorg/app/edid-decode $DIRNAME
7 cd $DIRNAME
8 if [ -z "$1" ]; then
9     git log | head -1
10 else
11     git checkout $1
12 fi
13 git log | head -1 | awk '{ print $2 }' > ../commitid
14 git repack -a -d
15 cd ..
16 tar cf - $DIRNAME | xz -c9 > $DIRNAME.tar.xz
17 rm -rf $DIRNAME