complete template filename change
This commit is contained in:
parent
8bc155e9dd
commit
be44b39771
4
Makefile
4
Makefile
|
@ -7,10 +7,10 @@ MDWNTOHTML = ./mdwntohtml $(TEMPLATE)
|
||||||
HTML = index.html
|
HTML = index.html
|
||||||
|
|
||||||
# Things to copy
|
# Things to copy
|
||||||
COPY += mdwntohtml template.xml
|
COPY += mdwntohtml $(TEMPLATE)
|
||||||
COPY += face.png chumby-photo.cgi
|
COPY += face.png chumby-photo.cgi
|
||||||
COPY += format.css default.css print.css
|
COPY += format.css default.css print.css
|
||||||
COPY += gitweb.cgi git-logo.png gitweb.css gitweb.conf
|
#COPY += gitweb.cgi git-logo.png gitweb.css gitweb.conf
|
||||||
COPY += portal.png portal.cgi
|
COPY += portal.png portal.cgi
|
||||||
COPY += g.cgi cgitrc cgit-header.html cgit.css
|
COPY += g.cgi cgitrc cgit-header.html cgit.css
|
||||||
|
|
||||||
|
|
2
g.cgi.c
2
g.cgi.c
|
@ -5,7 +5,7 @@ int
|
||||||
main(int argc, char *argv[])
|
main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
setenv("CGIT_CONFIG", "/home/neale/public_html/cgitrc", 1);
|
setenv("CGIT_CONFIG", "/home/neale/public_html/cgitrc", 1);
|
||||||
execl("/usr/local/src/cgit/cgit-stable/cgit", "cgit", NULL);
|
execl("/usr/local/bin/cgit", "cgit", NULL);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,7 +34,7 @@ else:
|
||||||
sys.stdout.flush()
|
sys.stdout.flush()
|
||||||
content = ('Name: %s\nSett: %s\n' % (t, s))
|
content = ('Name: %s\nSett: %s\n' % (t, s))
|
||||||
png = 'design.cgi?sett=%s' % urllib.quote(s_)
|
png = 'design.cgi?sett=%s' % urllib.quote(s_)
|
||||||
cvt = os.popen('./tartantomdwn %s tartan.m4 | ../mdwntohtml ../template.xml' % (png,),
|
cvt = os.popen('./tartantomdwn %s tartan.m4 | ../mdwntohtml ../template.m4' % (png,),
|
||||||
'w')
|
'w')
|
||||||
cvt.write(content)
|
cvt.write(content)
|
||||||
cvt.close()
|
cvt.close()
|
||||||
|
|
|
@ -1,17 +1,12 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<!DOCTYPE html>
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
<html lang="en">
|
||||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
||||||
<head>
|
<head>
|
||||||
<title>TITLE</title>
|
<title>TITLE</title>
|
||||||
<meta name="viewport" content="width=device-width" />
|
<meta name="viewport" content="width=device-width">
|
||||||
<link rel="stylesheet" type="text/css" media="screen"
|
<link rel="stylesheet" type="text/css" media="screen" href="/~neale/default.css">
|
||||||
href="/~neale/default.css" />
|
<link rel="stylesheet" type="text/css" media="print" href="/~neale/print.css">
|
||||||
<link rel="stylesheet" type="text/css" media="print"
|
<link rel="icon" type="image/png" href="/favicon.png">
|
||||||
href="/~neale/print.css" />
|
<link rel="start" type="text/html" href="/~neale/" title="Neale Pickett Page">
|
||||||
<link rel="icon" type="image/png" href="/favicon.png" />
|
|
||||||
<link rel="start" type="text/html" href="/~neale/"
|
|
||||||
title="Neale Pickett Page" />
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
|
@ -30,4 +30,4 @@ echo
|
||||||
done
|
done
|
||||||
echo '<strong>CRUNT<a href="http://www.subgenius.com/bigfist/bulldada/X0033_RAELIAN.TXT.html">!</a></strong>'
|
echo '<strong>CRUNT<a href="http://www.subgenius.com/bigfist/bulldada/X0033_RAELIAN.TXT.html">!</a></strong>'
|
||||||
echo '</p>'
|
echo '</p>'
|
||||||
) | m4 -DTITLE=crunt ../template.xml -
|
) | m4 -DTITLE=crunt ../template.m4 -
|
||||||
|
|
|
@ -111,4 +111,4 @@ echo
|
||||||
echo '---'
|
echo '---'
|
||||||
echo
|
echo
|
||||||
echo 'Reload for a new letter!'
|
echo 'Reload for a new letter!'
|
||||||
) | ../mdwntohtml ../template.xml
|
) | ../mdwntohtml ../template.m4
|
||||||
|
|
Loading…
Reference in New Issue