3cabf5f5be7ad8587c5a52781f313d3b51d2ab32
Roger Dingledine a dinky script to demonstra...

Roger Dingledine authored 18 years ago

1) #!/bin/sh
Roger Dingledine weasel gave me a less ugly...

Roger Dingledine authored 18 years ago

2) set -e # stop if we encounter an error
3) 
Sebastian Hahn Revert part of "get all the...

Sebastian Hahn authored 12 years ago

4) # pull the latest changes
Peter Palfrader Update publish

Peter Palfrader authored 12 years ago

5) if [ -e .svn ] ; then
6) 	svn update
7) elif [ -e .git ] ; then
8) 	git svn rebase
9) else
10) 	echo 2>&1 "Cannot figure out which version control thing you're using.  Skipping update"
11) fi
Sebastian Hahn Revert part of "get all the...

Sebastian Hahn authored 12 years ago

12) 
13) # clean up the working directory
Andrew Lewman put the clean back into pub...

Andrew Lewman authored 12 years ago

14) make clean
Sebastian Hahn Revert part of "get all the...

Sebastian Hahn authored 12 years ago

15) 
16) # actually build the site
Erinn Clark bump tbb versions to 2.2.34-2

Erinn Clark authored 13 years ago

17) make -j3
Roger Dingledine a dinky script to demonstra...

Roger Dingledine authored 18 years ago

18) 
Roger Dingledine hack to avoid copying a-r f...

Roger Dingledine authored 18 years ago

19) # don't copy over stuff with permissions that make it useless
Sebastian Hahn Fix chmod call to put its o...

Sebastian Hahn authored 13 years ago

20) chmod -R a+r *
Peter Palfrader Update publish

Peter Palfrader authored 12 years ago

21) rsync \
22) 	--exclude .DS_Store \
23) 	--exclude .svn \
24) 	--exclude .git \
25) 	--exclude '.*.sw[po]' \
26) 	--exclude .deps \
27) 	--exclude svn \
28) 	--exclude dist \
29) 	--exclude releases \
30) 	--exclude torbutton-current.xpi \
31) 	--exclude project \
32) 	-Prvz --delete . www-master.torproject.org:/srv/www-master.torproject.org/htdocs
Roger Dingledine the publish script now need...

Roger Dingledine authored 14 years ago

33) 
34) echo "Forcing mirror update"
Peter Palfrader publish: Fix find logic, an...

Peter Palfrader authored 12 years ago

35) ssh www-master.torproject.org '
Peter Palfrader Update publish

Peter Palfrader authored 12 years ago

36) 	(
Peter Palfrader publish: Fix find logic, an...

Peter Palfrader authored 12 years ago

37) 	 find /srv/www-master.torproject.org/htdocs ! -perm -444 -print0 | xargs -0 --no-run-if-empty chmod -v a+r ||
Peter Palfrader and fix output fd for the e...

Peter Palfrader authored 12 years ago

38) 	 ( echo >&2 "There are unreadable files in /srv/www-master.torproject.org/htdocs, not triggering mirror run."; exit 1)
Peter Palfrader Update publish

Peter Palfrader authored 12 years ago

39) 	) &&
Peter Palfrader publish: Fix find logic, an...

Peter Palfrader authored 12 years ago

40) 	echo "Triggering mirror run" &&