#! /bin/sh #--------------------------------------------------------------------------- # /var/install/bin/pre-setup-doc-menu # # Creation: 2007-04-04 dv # Last Update: $Id$ # # Copyright (c) 2007-2008 the eisfair team, team(at)eisfair(dot)org # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. #--------------------------------------------------------------------------- # create a documentation menu with all documentation files # that was found in the doc-root from the system folders=`ls /usr/share/doc` { echo "Package documentation" echo "base" for folder in ${folders} do if [ -f "/usr/share/doc/${folder}/${folder}.txt" ] then echo """View ${folder} documentation" fi done } > /var/install/menu/setup.doc.menu exit 0