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
|
||||
|
||||
# Things to copy
|
||||
COPY += mdwntohtml template.xml
|
||||
COPY += mdwntohtml $(TEMPLATE)
|
||||
COPY += face.png chumby-photo.cgi
|
||||
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 += 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[])
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
|
|
@ -34,7 +34,7 @@ else:
|
|||
sys.stdout.flush()
|
||||
content = ('Name: %s\nSett: %s\n' % (t, 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')
|
||||
cvt.write(content)
|
||||
cvt.close()
|
||||
|
|
|
@ -1,17 +1,12 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>TITLE</title>
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<link rel="stylesheet" type="text/css" media="screen"
|
||||
href="/~neale/default.css" />
|
||||
<link rel="stylesheet" type="text/css" media="print"
|
||||
href="/~neale/print.css" />
|
||||
<link rel="icon" type="image/png" href="/favicon.png" />
|
||||
<link rel="start" type="text/html" href="/~neale/"
|
||||
title="Neale Pickett Page" />
|
||||
<meta name="viewport" content="width=device-width">
|
||||
<link rel="stylesheet" type="text/css" media="screen" href="/~neale/default.css">
|
||||
<link rel="stylesheet" type="text/css" media="print" href="/~neale/print.css">
|
||||
<link rel="icon" type="image/png" href="/favicon.png">
|
||||
<link rel="start" type="text/html" href="/~neale/" title="Neale Pickett Page">
|
||||
</head>
|
||||
|
||||
<body>
|
|
@ -30,4 +30,4 @@ echo
|
|||
done
|
||||
echo '<strong>CRUNT<a href="http://www.subgenius.com/bigfist/bulldada/X0033_RAELIAN.TXT.html">!</a></strong>'
|
||||
echo '</p>'
|
||||
) | m4 -DTITLE=crunt ../template.xml -
|
||||
) | m4 -DTITLE=crunt ../template.m4 -
|
||||
|
|
|
@ -111,4 +111,4 @@ echo
|
|||
echo '---'
|
||||
echo
|
||||
echo 'Reload for a new letter!'
|
||||
) | ../mdwntohtml ../template.xml
|
||||
) | ../mdwntohtml ../template.m4
|
||||
|
|
Loading…
Reference in New Issue