home texts sources

My sources

Contents

issn.erl — routines for ISSN numbers

File:issn.erl
Language:Erlang
License:public domain
Date:2009-09-24

It is my first try to write a program in Erlang. The functions are:

This Erlang module can be adopted to other numbers like ISBN and so on.

smgen.lsp — sitemap generator

File:smgen.lsp
Language:newLISP
License:public domain
Date:2010-06-16

I started playing with the newLISP and wrote a small utility to generate sitemaps for various sites. For example I create the sitemap for the current site by typing:

cd $HOME/prj/samusev.pp.ru && make sitemap

where it calls:

smgen http://samusev.pp.ru . > sitemap.xml

where smgen is a shell script in $HOME/bin:

#!/bin/sh
newlisp $HOME/prj/samusev.pp.ru/sources/smgen.lsp $1 $2

I could also add an alias for a script. In my case I have added it into $HOME/.cshrc:

alias smg 'newlisp $HOME/prj/samusev.pp.ru/sources/smgen.lsp'

but make doesn't know about aliases. :)

I also know that this script doesn't work in a Windows system.