--- db/prgsrc/Makefile 2002/11/11 08:46:42 1.21 +++ db/prgsrc/Makefile 2003/01/08 23:14:50 1.33 @@ -9,11 +9,12 @@ 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=/var/tmp/ -TABLES= Questions Tournaments word2question nf nests +TABLES= Questions Tournaments word2question nf nests Authors A2Q +INDEXWRITER= rubash@hotbox.ru, roma7@zaba.ru DBSCRIPTS = mkdb.pl \ updatem.pl \ @@ -86,7 +87,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 @@ -155,11 +156,19 @@ dbdeliver: rm $(DUMPDIR)/chgkdump.0 $(SCP) $(DUMPDIR)/chgkdump.gz $(KULICHKI):$(DESTDUMPDIR) -updatecvs: +update: cvs update $(SRCDIR) + mysql -upiataev chgk &1 | tee $(DUMPDIR)/update.log + ${PERL} $(DBBIN)/makeauthors.pl + if [ -f unsorted ]; then mail -sUnsorted $(INDEXWRITER) >unsorted +authorsdeliver: + mysqldump --add-drop-table -u piataev chgk Authors A2Q > $(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) - -