ppcrcd/trunk: Makefile doc/page_head.html
sparky
cvs at pld-linux.org
Sat Mar 18 13:57:18 CET 2006
Author: sparky
Date: Sat Mar 18 13:57:09 2006
New Revision: 7216
Added:
ppcrcd/trunk/doc/page_head.html
Modified:
ppcrcd/trunk/Makefile
Log:
- automatic generation of web page
Modified: ppcrcd/trunk/Makefile
==============================================================================
--- ppcrcd/trunk/Makefile (original)
+++ ppcrcd/trunk/Makefile Sat Mar 18 13:57:09 2006
@@ -1,7 +1,8 @@
# @_VERSION_@
-VERSION = pre PLD Day
-VER13 = $(shell echo '"$(VERSION)" ' | cut -c 1-13 )
+VERSION = pre-release
+VER13 = $(shell echo '"$(VERSION)" ' | cut -c 1-13 )
+DATE = $(shell date -I -u)
SU = sudo
BCOND = --without python --without smp --without doc
@@ -113,7 +114,7 @@
mv -f $@{.work,}
$(touch)/pld-release: $(root_stripped)
- echo "PLD Linux: PPCRCD $(VERSION) ($(shell date -I -u))" | \
+ echo "PLD Linux: PPCRCD $(VERSION) ($(DATE))" | \
$(SU) tee $(root_stripped)/etc/pld-release
sleep 1 && touch $@
@@ -291,6 +292,26 @@
@LANGUAGE= LANG= LC_ALL=C rpm --root=$(PWD)/$(root_inst) -qa \
--queryformat="<b>%{NAME}</b>(%{EPOCH}:%{VERSION}-%{RELEASE})ľ\t<i>%{SUMMARY}</i>\n" | sort | tr "ľ" "\n"
+page: out/ppcrcd.iso $(DOCS) doc/page_head.html
+ rm -rf $@{,.work}
+ mkdir -p $@.work/$(DATE)
+ cp out/ppcrcd.iso $@.work/$(DATE)/
+ cp $(DOCS) $@.work
+ mv $@.work/{index.html,docs.html}
+ cat doc/page_head.html > $@.work/index.html
+ echo '$(VER13)' >> $@.work/index.html
+ echo '<a href="$(DATE)/ppcrcd.iso">here</a>.</b>' >> $@.work/index.html
+ echo '<br />size: ' >> $@.work/index.html
+ ls -lk out/ppcrcd.iso | awk '{print $$5}' >> $@.work/index.html
+ echo 'kb <br />MD5: ' >> $@.work/index.html
+ md5sum out/ppcrcd.iso | awk '{print $$1}' >> $@.work/index.html
+ echo '</p><h3>Installed packages</h3><pre>' >> $@.work/index.html
+ make --no-print-directory info >> $@.work/index.html
+ echo '</pre></body></html>'
+ chmod -R a+rX $@.work
+ mv -f $@{.work,}
+ touch $@
+
.PHONY: specsup
specsup:
cd out/rpm/SPECS && cvs up
@@ -355,6 +376,9 @@
done; \
cd out/rpm/SOURCES/ && du -shc $$LIST && rm -v $$LIST
+.PHONY: %/
+%/: %
+
# don't delete anything
.SECONDARY:
Added: ppcrcd/trunk/doc/page_head.html
==============================================================================
--- (empty file)
+++ ppcrcd/trunk/doc/page_head.html Sat Mar 18 13:57:09 2006
@@ -0,0 +1,17 @@
+<html>
+<head>
+ <title>PPCRCD - PowerPC RescueCD</title>
+ <style>
+ pre {
+ padding: 5px;
+ border: 1px dashed #909090;
+ }
+ </style>
+</head>
+
+<body>
+ <h3>PPCRCD - PLD Linux Distribution based RescueCD for PowerPC computers.</h3>
+ <p>
+ This is new, probably test, release.<br />
+ Find some documentation <a href="docs.html">here</a>.<br />
+ <b>And download this version, named
More information about the pld-cvs-commit
mailing list