blob: 42aaa1626d73389e00de2cd4b09c01b883a4eaf8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
rm -fR /tmp/tmp-etlegacy
mkdir -p /tmp/tmp-etlegacy
cd /tmp/tmp-etlegacy
git clone git://github.com/etlegacy/etlegacy.git
cd etlegacy
git submodule init
git submodule update
cd libs
git archive master > ../../libs.tar
cd ..
cd scripts
git archive master > ../../scripts.tar
cd ..
COMMIT=$( git log -1 | head -1 | cut -c 8-14 )
COMMDATE=$( git log -1 --date=short | grep ^Date | awk '{print $2}' | sed 's/-//g' )
rm -f /tmp/etlegacy-${COMMDATE}_${COMMIT}.tar.xz
git archive master > ../src.tar
cd ..
mkdir etlegacy-${COMMDATE}_${COMMIT}
cd etlegacy-${COMMDATE}_${COMMIT}
tar xf ../src.tar
cd libs
tar xf ../../libs.tar
cd ..
cd scripts
tar xf ../../scripts.tar
cd ..
cd ..
rm -f src.tar libs.tar scripts.tar
tar Jcf /tmp/etlegacy-${COMMDATE}_${COMMIT}.tar.xz etlegacy-${COMMDATE}_${COMMIT}
echo "/tmp/etlegacy-${COMMDATE}_${COMMIT}.tar.xz done."
|