--- db/prgsrc/Makefile 2002/01/08 14:27:01 1.16 +++ db/prgsrc/Makefile 2002/11/11 09:08:26 1.24 @@ -9,10 +9,10 @@ KULICHKI=znatoki.kulichki.net RSYNC = rsync -ruvpte ssh --delete --progress --rsync-path='~/bin/rsync' SCP=scp DESTSRCDIR=~piataev/public_html/dimrub/src/ -SRCDIR=../baza/ +SRCDIR=../baza DESTPRGSRC=~piataev/db/prgsrc DUMPDIR=../dump -DESTDUMPDIR=/tmp/ +DESTDUMPDIR=/var/tmp/ TABLES= Questions Tournaments word2question nf nests DBSCRIPTS = mkdb.pl \ @@ -60,7 +60,7 @@ HTMLS = contribute.html \ search.html - +TEXTS = $(SRCDIR)/*.txt DBBIN = ../bin @@ -86,7 +86,7 @@ $(DBBIN)/%.pl: %.pl cp $< $@ chmod $(PMODE) $@ if [ -f $(TMPSAV)/$(@F) ]; then rm -f $(TMPSAV)/$(@F); fi - + $(CGIBIN)/%.cgi: %.cgi ${PERL} -c $< - pod2man --center "Internet Club DB" $< > $*.1 @@ -136,7 +136,10 @@ $(HTMLDIR)/%.html: %.html cp $< $@ +$(UNSORTED): TEXTS +$(SRCDIR)/%.txt: + updatedb $< srcdeliver: $(RSYNC) $(SRCDIR) $(KULICHKI):$(DESTSRCDIR) @@ -149,6 +152,18 @@ dbdeliver: mysqldump --add-drop-table -u piataev chgk $(TABLES) > $(DUMPDIR)/chgkdump.0 sed 's/TYPE=ISAM PACK_KEYS=1//g' $(DUMPDIR)/chgkdump.0 > $(DUMPDIR)/chgkdump gzip $(DUMPDIR)/chgkdump + rm $(DUMPDIR)/chgkdump.0 $(SCP) $(DUMPDIR)/chgkdump.gz $(KULICHKI):$(DESTDUMPDIR) +updatecvs: + +update: + cvs update $(SRCDIR) + mysql -upiatev