[adb8be]: makefile Maximize Restore History

Download this file

makefile    68 lines (51 with data), 2.1 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# SBCL web page makefile
ifeq ($(SFNETUSER),)
SFNETUSER=$(shell ./extract-sfnet-user)
endif
ifeq ($(SFNETUSER),)
SFNETUSER=$(shell whoami)
endif
SFNETHOST=web.sourceforge.net
HTDOCSDIR=/home/groups/s/sb/sbcl/htdocs
UPLOADFILES=$(wildcard *.html *.css *.png)
ifeq ($(CURRENT_RELEASE),)
$(error Set CURRENT_RELEASE before running make)
else
RELEASE_TAG=sbcl_$(subst .,_,$(CURRENT_RELEASE))
endif
.PHONY: all generate-pages clean clean-generated clean-junk commit upload
all: generate-pages
NEWS::
cvs co -p -r $(RELEASE_TAG) sbcl/NEWS > NEWS
current-release:: NEWS
( echo $(CURRENT_RELEASE) > current-release ; \
cvs rlog -N -r$(RELEASE_TAG) sbcl/version.lisp-expr | ./cvs-rlog-to-date >> current-release )
generate-pages: current-release
SBCL=$(SBCL); $${SBCL:-sbcl} --eval "(require :asdf)" --eval "(require :sbcl-page)" --eval "(sbcl-page:generate-pages)" --eval "(quit)"
clean: clean-generated clean-junk
clean-generated:
rm -f *.html
commit:
cvs commit
# Circa October 2008, SF no longer gives us shell access, so we can't
# do interesting backupoid operations like this target anymore.
#
# upload-pages: generate-pages commit
# @echo "Uploading html files to sf.net:,sbcl.new-pages..."
# @tar zcf - *.html | \
# ssh ${SFNETHOST} \
# '[' -d ,sbcl.new-pages ']' '&&' rm -rf ,sbcl.new-pages.old '&&' mv ,sbcl.new-pages ,sbcl.new-pages.old ';'\
# mkdir ,sbcl.new-pages '&&' cd ,sbcl.new-pages '&&' tar zxf - '&&' \
# echo "Done uploading. Backing up old pages and Installing new ones..." '&&' \
# mkdir -p ../,sbcl.old-pages '&&' mv -f ${HTDOCSDIR}/'*'.html ../,sbcl.old-pages '&&' \
# cp '*'.html ${HTDOCSDIR} '&&'\
# echo "All done."
#
# When I (RMK) updated the website on 20081002, I used the following,
# which did produce tilde-style backup files on the web host.
#
# rsync -avP -e ssh -b *.html <user>,sbcl@web.sourceforge.net:/home/groups/s/sb/sbcl/htdocs/
upload: generate-pages
rsync -avP -e ssh -b $(UPLOADFILES) $(SFNETUSER),sbcl@$(SFNETHOST):$(HTDOCSDIR)
clean-junk:
rm -f *.fasl *~ *.lisp-expr