Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Diff of /makefile [62cdf2] .. [50a766] Maximize Restore

  Switch to side-by-side view

--- a/makefile
+++ b/makefile
@@ -13,33 +13,35 @@
 
 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
+.PHONY: all generate-pages clean clean-generated clean-junk commit upload sbcl
 
 all: generate-pages
 
-NEWS::
-	cvs co -p -r $(RELEASE_TAG) sbcl/NEWS > NEWS
+sbcl:
+	git submodule update --init
 
-current-release:: NEWS
-	( echo $(CURRENT_RELEASE) > current-release ; \
-	  cvs rlog -N -r$(RELEASE_TAG) sbcl/version.lisp-expr | ./cvs-rlog-to-date >> current-release )
+current-release: sbcl
+	cd sbcl && git describe --match 'sbcl*' --abbrev=0 | sed -e s/sbcl.// | sed -e s/_/\./g > ../current-release
+	cd sbcl &&  git log -1 --pretty=format:%ad --date=short >> ../current-release
+
+NEWS: sbcl
+	cp sbcl/NEWS NEWS
 
 generate-pages: current-release
 	SBCL=$(SBCL); $${SBCL:-sbcl} --eval "(require :asdf)" --eval "(require :sbcl-page)" --eval "(sbcl-page:generate-pages)" --eval "(quit)"
+
+sbcl/doc/manual/sbcl.html:
+	cd sbcl && sh make.sh
+	cd sbcl/doc/manual && make
+
+manual: sbcl/doc/manual/sbcl.html
+	mkdir -p manual
+	cp sbcl/doc/manual/sbcl.html manual/index.html
 
 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.
@@ -61,7 +63,7 @@
 # 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)
+	rsync -avP -e ssh -b manual $(UPLOADFILES) $(SFNETUSER),sbcl@$(SFNETHOST):$(HTDOCSDIR)
 
 clean-junk:
 	rm -f *.fasl *~ *.lisp-expr