Mercurial > hg > kdocs
view make/do-readme.sh @ 81:6adf16f10d54
Split up make.sh so it's easier to call subsets of its functionality.
author | Rob Landley <rob@landley.net> |
---|---|
date | Tue, 23 Oct 2007 18:35:49 -0500 |
parents | |
children |
line wrap: on
line source
#!/bin/bash if [ -z "$WEBDIR" ] || [ -z "$LNXDIR" ] then echo set WEBDIR and LNXDIR exit 1 fi cd "$LNXDIR"/hg rm -rf "$WEBDIR"/readme mkdir "$WEBDIR"/readme for i in $(find . -name "*[Rr][Ee][Aa][Dd][Mm][Ee]*" | grep -v "Documentation/") do OUT=$(echo $i | sed -e 's@\./@@' -e 's@/@-@g') cp $i "$WEBDIR"/readme/$OUT done make help > "$WEBDIR"/makehelp.txt