Commit fbf4f9b6 authored by David Byers's avatar David Byers
Browse files

Updated Makefile and scripts

parent ec27e434
CVSROOT=$$USER@cvs.lysator.liu.se:/cvsroot/lyskom-elisp-client
#TARGET=/lysator/www/projects/lyskom/klienter/elisp
TARGET=/var/www/lyskom
#
# Don't change these. Set the on the command line if you need to
# change them
#
USER=$$USER
CVSROOT=$(USER)@cvs.lysator.liu.se:/cvsroot/lyskom-elisp-client
TARGET=/lysator/www/projects/lyskom/klienter/elisp
LANG=sv
DOCDIR = ../doc
all:
./bin/mkindex index-template.xml items
cvs -d $(CVSROOT) co -d $(TARGET) lyskom-elisp-client/web/files
mkdir $(TARGET)/doc
all: dirs index
cd $(TARGET)/.. && \
cvs -d $(CVSROOT) co -d `basename $(TARGET)` \
lyskom-elisp-client/web/files
cp $(DOCDIR)/NEWS* $(TARGET)/doc
ln -sf index.$(LANG).html $(TARGET)/index.html
echo "DefaultType text/plain" > $(TARGET)/doc/.htaccess
dirs:
if [ \! -d $(TARGET) ] ; then mkdir $(TARGET); fi
if [ \! -d $(TARGET)/doc ] ; then mkdir $(TARGET)/doc; fi
index:
./bin/mkindex index-template.xml items
mv index.en.html $(TARGET)
mv index.sv.html $(TARGET)
ln -sf index.$(LANG).html $(TARGET)/index.html
......@@ -17,7 +17,7 @@ function extract_language () {
sed "s,<lang id=\"$inverse\">$lang_inverse</lang>,,g" |\
sed "s,<lang id=\"$lang\">,,g" |\
sed "s,</lang>,,g" |\
sed "/<!-- CONTENT -->/ r /tmp/elisp-client-items.sv" \
sed "/<!-- CONTENT -->/ r elisp-client-items.sv" \
> index.$lang.html
}
......@@ -30,7 +30,7 @@ function get_lines () {
function get_items() {
lang=$1
output="/tmp/elisp-client-items.$lang"
output="elisp-client-items.$lang"
echo > $output
for file in `grep "^SORT" $items/* | sort -n -t= -r -k 2 | cut -d: -f1` ; do
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment