blob: 5e20e8bd7b2997b509a093169dba735a6368caf1 (
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
32
33
34
35
36
37
|
#!/bin/bash
orev=$(cat rev.txt)
nrev=$(wget http://www.mayor.hu/download/rev.txt -O -)
pd=$(pwd)
if [ "$nrev" -gt "$orev" ]; then
wget http://www.mayor.hu/download/rev.txt -O rev.txt
cd /tmp/
wget http://www.mayor.hu/download/current/mayor-base-current.tgz
wget http://www.mayor.hu/download/current/mayor-naplo-current.tgz
wget http://www.mayor.hu/download/current/mayor-portal-current.tgz
wget http://www.mayor.hu/download/current/mayor-installer-current.tgz
cd $pd/mayor-installer-orig/
tar -xzf /tmp/mayor-installer-current.tgz
cd $pd/mayor-orig/
tar -xzf /tmp/mayor-base-current.tgz
tar -xzf /tmp/mayor-naplo-current.tgz
tar -xzf /tmp/mayor-portal-current.tgz
cd $pd
git add --all
git commit -a -m "Rev: $nrev"
fi
|