version 1.11, 2001/11/01 01:44:59
|
version 1.24, 2002/11/11 09:08:26
|
Line 7 PMODE = 775
|
Line 7 PMODE = 775
|
LMODE = 664 |
LMODE = 664 |
KULICHKI=znatoki.kulichki.net |
KULICHKI=znatoki.kulichki.net |
RSYNC = rsync -ruvpte ssh --delete --progress --rsync-path='~/bin/rsync' |
RSYNC = rsync -ruvpte ssh --delete --progress --rsync-path='~/bin/rsync' |
|
SCP=scp |
DESTSRCDIR=~piataev/public_html/dimrub/src/ |
DESTSRCDIR=~piataev/public_html/dimrub/src/ |
SRCDIR=../baza/ |
SRCDIR=../baza |
DESTPRGSRC=~piataev/db/prgsrc |
DESTPRGSRC=~piataev/db/prgsrc |
DUMPDIR=../dump |
DUMPDIR=../dump |
DESTDUMPDIR=/tmp/ |
DESTDUMPDIR=/var/tmp/ |
|
TABLES= Questions Tournaments word2question nf nests |
|
|
DBSCRIPTS = mkdb.pl \ |
DBSCRIPTS = mkdb.pl \ |
updatem.pl \ |
updatem.pl \ |
Line 24 DBSCRIPTS = mkdb.pl \
|
Line 26 DBSCRIPTS = mkdb.pl \
|
renamefile.pl \ |
renamefile.pl \ |
makecheck.pl\ |
makecheck.pl\ |
mkRS.pl\ |
mkRS.pl\ |
|
delRS.pl\ |
updateRS.pl\ |
updateRS.pl\ |
updateRS1.pl\ |
updateRS1.pl\ |
|
updateRS2.pl\ |
|
updateRS3.pl\ |
dumpRS.pl\ |
dumpRS.pl\ |
dumpin2out.pl\ |
dumpin2out.pl\ |
dump2dump.pl\ |
dump2dump.pl\ |
Line 41 LIBS = chgkfiles.pm \
|
Line 46 LIBS = chgkfiles.pm \
|
|
|
CGISCRIPTS = db.cgi |
CGISCRIPTS = db.cgi |
|
|
|
|
|
HTMLS = contribute.html \ |
|
copyright.html \ |
|
copyright_mozg.html \ |
|
credits.html \ |
|
dbmain.html \ |
|
footer.html \ |
|
guestbook.html \ |
|
index.html \ |
|
random.html \ |
|
reklama.html \ |
|
search.html |
|
|
|
|
|
TEXTS = $(SRCDIR)/*.txt |
|
|
|
|
DBBIN = ../bin |
DBBIN = ../bin |
MANDIR = ../man |
MANDIR = ../man |
LIBDIR = ../lib |
LIBDIR = ../lib |
CGIBIN = $(ROOT)/public_html/cgi-bin |
CGIBIN = $(ROOT)/public_html/cgi-bin |
|
HTMLDIR = $(ROOT)/public_html/dimrub/db |
|
|
BININSTALL = ${DBSCRIPTS:%=$(DBBIN)/%} |
BININSTALL = ${DBSCRIPTS:%=$(DBBIN)/%} |
CGIINSTALL = ${CGISCRIPTS:%.cgi=$(CGIBIN)/%.cgi} |
CGIINSTALL = ${CGISCRIPTS:%.cgi=$(CGIBIN)/%.cgi} |
LIBINSTALL = ${LIBS:%=$(LIBDIR)/%} |
LIBINSTALL = ${LIBS:%=$(LIBDIR)/%} |
|
HTMLINSTALL = ${HTMLS:%.html=$(HTMLDIR)/%.html} |
|
|
all: $(LIBINSTALL) $(BININSTALL) $(CGIINSTALL) |
all: $(LIBINSTALL) $(BININSTALL) $(CGIINSTALL) $(HTMLINSTALL) |
|
|
|
|
$(DBBIN)/%.pl: %.pl |
$(DBBIN)/%.pl: %.pl |
Line 62 $(DBBIN)/%.pl: %.pl
|
Line 86 $(DBBIN)/%.pl: %.pl
|
cp $< $@ |
cp $< $@ |
chmod $(PMODE) $@ |
chmod $(PMODE) $@ |
if [ -f $(TMPSAV)/$(@F) ]; then rm -f $(TMPSAV)/$(@F); fi |
if [ -f $(TMPSAV)/$(@F) ]; then rm -f $(TMPSAV)/$(@F); fi |
|
|
$(CGIBIN)/%.cgi: %.cgi |
$(CGIBIN)/%.cgi: %.cgi |
${PERL} -c $< |
${PERL} -c $< |
- pod2man --center "Internet Club DB" $< > $*.1 |
- pod2man --center "Internet Club DB" $< > $*.1 |
Line 108 $(LIBDIR)/%.cnf: %.cnf
|
Line 132 $(LIBDIR)/%.cnf: %.cnf
|
if [ -f $(TMPSAV)/$(@F) ]; then rm -f $(TMPSAV)/$(@F); fi |
if [ -f $(TMPSAV)/$(@F) ]; then rm -f $(TMPSAV)/$(@F); fi |
|
|
|
|
|
$(HTMLDIR)/%.html: %.html |
|
cp $< $@ |
|
|
|
|
|
$(UNSORTED): TEXTS |
|
|
|
$(SRCDIR)/%.txt: |
|
updatedb $< |
|
|
srcdeliver: |
srcdeliver: |
$(RSYNC) $(SRCDIR) $(KULICHKI):$(DESTSRCDIR) |
$(RSYNC) $(SRCDIR) $(KULICHKI):$(DESTSRCDIR) |
Line 119 prgdeliver:
|
Line 149 prgdeliver:
|
$(RSYNC) ./ $(KULICHKI):$(DESTPRGSRC) |
$(RSYNC) ./ $(KULICHKI):$(DESTPRGSRC) |
|
|
dbdeliver: |
dbdeliver: |
mysqldump -u piataev chgk > $(DUMPDIR)/chgkdump |
mysqldump --add-drop-table -u piataev chgk $(TABLES) > $(DUMPDIR)/chgkdump.0 |
$(RSYNC) $(DUMPDIR)/chgkdump $(KULICHKI):$(DESTDUMPDIR) |
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 <delq |
|
${PERL} createdb.pl |
|
${PERL} updateindex.pl -i$(SRCDIR)index |
|
${PERL} updatedb.pl $(SRCDIR)*.txt |
|
|
|
|
|
|