]> mj.ucw.cz Git - ga.git/commitdiff
Fixed upload scripts.
authorMartin Mares <mj@ucw.cz>
Fri, 27 Oct 2006 14:01:34 +0000 (16:01 +0200)
committerMartin Mares <mj@ucw.cz>
Fri, 27 Oct 2006 14:01:34 +0000 (16:01 +0200)
Makefile
Makerules
all/Makefile

index c645585463408ae6c965c3c1d92dddf45ef5b8ee..9d6901addf0933d5f341b5c55dde65583a514c8a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,7 @@
 all:
 
-upload:
-       tar czvvf - Makerules sgr.tex ~/texmf/tex/mj/mjmac.tex | ssh atrey 'cat >WWW/vyuka/sgr-2005/macros.tar.gz'
+clean:
+       for a in *-* all ; do ( cd $$a && make clean ) ; done
+       rm -f *~
 
 .SECONDARY:
index 65c4aedefca136f55e9c96b8d48f9c285edc61b6..337e0dc1e8e3f6276ebd2738e5ec75e6513c53c5 100644 (file)
--- a/Makerules
+++ b/Makerules
@@ -27,11 +27,8 @@ mostlyclean:
 clean:: mostlyclean
        rm -f *.ps *.pdf
 
-upload:
-       make clean
-       ( cd .. && tar czvvf - $P ) | ssh atrey "cat >WWW/vyuka/sgr-2005/$P.tar.gz"
+upload::
        make $P.ps
-       scp -C $P.ps atrey:WWW/vyuka/sgr-2005/$P.ps
-       make clean
+       scp -C $P.ps jabberwock:www/vyuka/ga/$P.ps
 
 .SECONDARY:
index 1e34494ab414e29cfd5cd824fd9a689fe25339b4..a1672daa8623701b8647915414ddd9e0b2898f4f 100644 (file)
@@ -1,10 +1,14 @@
-P=all
+P=ga
 X=$(shell for a in 1 2 3 4 5 6 7 8 9 ; do echo ../$$a-*/$$a-*.tex ; done)
 
 include ../Makerules
 
-all.tex: $(X) preprocess
+ga.tex: $(X) preprocess
        ./preprocess $(X) >$@
 
 clean::
-       rm -f all.tex
+       rm -f ga.tex
+
+upload::
+       ( cd .. && make clean )
+       ( cd ../.. && tar czf - --exclude .git ga ) | ssh jabberwock 'cd www/vyuka/ga/ && cat >ga.tar.gz.new && mv ga.tar.gz.new ga.tar.gz'