| author | Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com> |
| Tue, 24 May 2011 11:08:30 +0200 | |
| changeset 148 | 47fac39ed434 |
| parent 146 | 6fbf5a793fe9 |
| child 152 | 7b939dc01fa3 |
| permissions | -rwxr-xr-x |
|
0
4eba9c11703f
first import
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff
changeset
|
1 |
#!/usr/bin/env bash |
|
4eba9c11703f
first import
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff
changeset
|
2 |
set -e |
|
4eba9c11703f
first import
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff
changeset
|
3 |
if [ -d ~/tmp/tweet_live_V$1 ]; then |
|
4eba9c11703f
first import
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff
changeset
|
4 |
rm -fr ~/tmp/tweet_live_V$1; |
|
4eba9c11703f
first import
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff
changeset
|
5 |
fi |
|
4eba9c11703f
first import
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff
changeset
|
6 |
|
|
4eba9c11703f
first import
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff
changeset
|
7 |
hg archive -r V$1 ~/tmp/tweet_live_V$1 |
|
4eba9c11703f
first import
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff
changeset
|
8 |
|
|
4eba9c11703f
first import
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff
changeset
|
9 |
#text2unix ~/tmp/tweet_live_V$1 |
|
4eba9c11703f
first import
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff
changeset
|
10 |
|
|
4eba9c11703f
first import
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff
changeset
|
11 |
if [ -d ~/tmp/tweet_live_V$1 ]; then |
|
146
6fbf5a793fe9
update sync script
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
125
diff
changeset
|
12 |
cat <<EOT | rsync -Cvrlz --delete --filter=". -" ~/tmp/tweet_live_V$1/web/ iri@www.iri.centrepompidou.fr:/home/polemictweet/ |
|
6fbf5a793fe9
update sync script
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
125
diff
changeset
|
13 |
+ core |
|
6fbf5a793fe9
update sync script
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
125
diff
changeset
|
14 |
P config.php |
|
6fbf5a793fe9
update sync script
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
125
diff
changeset
|
15 |
P .htaccess |
|
6fbf5a793fe9
update sync script
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
125
diff
changeset
|
16 |
EOT |
|
0
4eba9c11703f
first import
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff
changeset
|
17 |
fi |
|
4eba9c11703f
first import
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff
changeset
|
18 |
|
|
4eba9c11703f
first import
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff
changeset
|
19 |
if [ -d ~/tmp/tweet_live_V$1 ]; then |
|
4eba9c11703f
first import
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff
changeset
|
20 |
echo "Deleting temp export" |
|
4eba9c11703f
first import
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff
changeset
|
21 |
rm -fr ~/tmp/tweet_live_V$1; |
|
4eba9c11703f
first import
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff
changeset
|
22 |
fi |
|
4eba9c11703f
first import
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff
changeset
|
23 |
|
|
4eba9c11703f
first import
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff
changeset
|
24 |
ssh iri@web.iri.centrepompidou.fr sudo apache2ctl restart |