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

The git to SVN gateway presents index.html as source and not as plain HTML at

the moment, so we keep the old page on www.almesberger.net for now.

- web/style.sh (BASE): introduced URL prefix
- web/Makefile: upload only index.html to www.almesberger.net
- index.html: regenerated, for consistency (it currently doesn't serve any
  purpose)
This commit is contained in:
Werner Almesberger
2010-08-03 11:00:29 -03:00
parent 1d82537272
commit 8013711504
3 changed files with 167 additions and 166 deletions

View File

@@ -1,5 +1,6 @@
#!/bin/sh
BASE=http://projects.qi-hardware.com/index.php/p/ben-scans/source/tree/master/
# ----- section ---------------------------------------------------------------
@@ -87,7 +88,7 @@ image()
{
__do_before_image
cat <<EOF
<TD><IMG src="data/jpg/$1.jpg">
<TD><IMG src="${BASE}data/jpg/$1.jpg">
EOF
}
@@ -149,7 +150,7 @@ link()
else
size="`echo $size | awk '{printf("%.1f MB", $1/1000000)}'`"
fi
echo "<A href=\"$1\">$2</A> $size"
echo "<A href=\"${BASE}$1\">$2</A> $size"
}
@@ -249,7 +250,7 @@ cat <<EOF
<TD>
<TABLE border=0 cellspacing=3 cellpadding=0>
<TR>
<TD><IMG src="data/jpg/$1.jpg">
<TD><IMG src="${BASE}data/jpg/$1.jpg">
</TABLE>
EOF
}