summaryrefslogtreecommitdiff
path: root/doc/update.sh
diff options
context:
space:
mode:
authorAndres Mejia <amejia004@gmail.com>2012-02-05 16:00:12 -0500
committerAndres Mejia <amejia004@gmail.com>2012-02-05 16:00:12 -0500
commit09acd75a9963f5a08d36e5a5aa4a7cfe3b80f813 (patch)
treefce85695346b0d1397ab6b250993532907fbf465 /doc/update.sh
parent5f9884a01a74d07b37add08cbb7367a6e9819d2f (diff)
downloadlibarchive-09acd75a9963f5a08d36e5a5aa4a7cfe3b80f813.tar.gz
Remove old script that generates wiki pages for googlecode wiki.
Diffstat (limited to 'doc/update.sh')
-rwxr-xr-xdoc/update.sh30
1 files changed, 2 insertions, 28 deletions
diff --git a/doc/update.sh b/doc/update.sh
index ec915831..1994eb3a 100755
--- a/doc/update.sh
+++ b/doc/update.sh
@@ -5,27 +5,6 @@
# the mdoc man pages stored in each project.
#
-USAGE="\n\
-Simple script to repopulate the 'doc' tree from\n\
-the mdoc man pages stored in each project.\n\
-\n\
- -h, --help Display this help message\n\
- --mediawiki Use mediawiki markup for wiki pages.\n"
-
-# Loop that parses options passed to script
-while [ "$#" -gt "0" ]; do
- case "$1" in
- --mediawiki)
- USE_MEDIAWIKI=1
- shift
- ;;
- -h|--help|*)
- echo -e "${USAGE}"
- exit 1
- ;;
- esac
-done
-
# Collect list of man pages, relative to my subdirs
test -d man || mkdir man
cd man
@@ -119,13 +98,8 @@ all="all:"
for f in $MANPAGES; do
outname="`basename $f | awk '{ac=split($0,a,"[_.-]");o="ManPage";for(w=0;w<=ac;++w){o=o toupper(substr(a[w],1,1)) substr(a[w],2)};print o}'`.wiki"
echo >> Makefile
- if [ -z "$USE_MEDIAWIKI" ]; then
- echo $outname: ../mdoc2wiki.awk $f >> Makefile
- echo " awk -f ../mdoc2wiki.awk < $f > $outname" >> Makefile
- else
- echo $outname: ../mdoc2mediawiki.awk $f >> Makefile
- echo " awk -f ../mdoc2mediawiki.awk < $f > $outname" >> Makefile
- fi
+ echo $outname: ../mdoc2wiki.awk $f >> Makefile
+ echo " awk -f ../mdoc2wiki.awk < $f > $outname" >> Makefile
all="$all $outname"
done
echo $all >>Makefile