Archived
1
0
Fork 0
This repository has been archived on 2026-05-10. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
archived/docs/genindex.sh
2010-11-05 11:13:18 +01:00

19 lines
342 B
Bash
Executable file

#!/bin/sh
if [ $# -lt 1 ]; then
exit 1
fi
(
echo "Archived Documentation"
echo "----------------------"
for DOC in `ls *.txt`; do
if [ "$DOC" = "$1" ]; then
continue
fi
display=$(sed -e 1q "${DOC}")
link=${DOC%.txt}.html
echo "* link:${link}[${display}]"
done
) > $1