1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2025-04-21 12:27:27 +03:00

Generate commit entry and show diffs also for the first commit. Plus cleanup.

- scripts/Makefile: added targets for ben-wpan/cntr
- scripts/schhist2web: removed stray and redundant mkdir of output
  directories
- scripts/schhist2web: added section titles
- scripts/schhist2web: <TR> tag was issued twice per commit
- scripts/schhist2web (commit_entry): moved commit entry generation to a
  separate function
- scripts/schhist2web (commit_entry): replaced "git log $next~1..$next"
  with more robust "git show --quiet $next"
- scripts/schhist2web: generate file creation entries for all files in the
  first commit
This commit is contained in:
Werner Almesberger
2010-08-29 01:44:25 -03:00
parent 3ca646cd57
commit 56a95040ca
2 changed files with 96 additions and 20 deletions

View File

@@ -1,6 +1,8 @@
SHELL = /bin/bash
.PHONY: all ben-wpan-schhist xue-schhist
.PHONY: all ben-wpan-schhist ben-wpan-schhist-upload
.PHONY: xue-schhist xue-schhist-upload
.PHONY: cntr-schhist cntr-schhist-upload
# All the targets are for demo purposes pnly !
@@ -8,6 +10,7 @@ all:
@echo "possible targets:" 2>&1
@echo " ben-wpan-schhist ben-wpan-schhist-upload" 2>&1
@echo " xue-schhist xue-schhist-upload" 2>&1
@echo " cntr-schhist cntr-schhist-upload" 2>&1
@exit 1
ben-wpan-schhist:
@@ -29,3 +32,13 @@ xue-schhist:
xue-schhist-upload:
rsync -a --progress _xue/{index.html,unchanged.png,thum*,diff*} \
werner@host:/home/httpd/almesberger/misc/ben/demo2/
cntr-schhist:
SCHHIST_TITLE=ben-wpan/cntr \
SCHHIST_HOME_URL=http://projects.qi-hardware.com/index.php/p/ben-wpan/ \
SCHHIST_COMMIT_TEMPLATE='http://projects.qi-hardware.com/index.php/p/ben-wpan/source/commit/{}/' \
./schhist2web cntr/cntr.sch _cntr
cntr-schhist-upload:
rsync -a --progress _cntr/{index.html,unchanged.png,thum*,diff*} \
werner@host:/home/httpd/almesberger/misc/ben/demo3/