From 2e25778dddc88b0fc31eb69ca6d388b6ae37573c Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Fri, 27 Oct 2006 16:01:34 +0200 Subject: [PATCH] Fixed upload scripts. --- Makefile | 5 +++-- Makerules | 7 ++----- all/Makefile | 10 +++++++--- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/Makefile b/Makefile index c645585..9d6901a 100644 --- 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: diff --git a/Makerules b/Makerules index 65c4aed..337e0dc 100644 --- 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: diff --git a/all/Makefile b/all/Makefile index 1e34494..a1672da 100644 --- a/all/Makefile +++ b/all/Makefile @@ -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' -- 2.39.2