view update-subdirs @ 27341:ab22130d8fe3

(enum menu_item_idx): New enumeration replacing defines MENU_ITEMS_ITEM_.*. (MENU_ITEMS_ITEM_HELP): New enumerator. (push_menu_item): Add parameter HELP. Record help in menu_items. (single_menu_item, single_submenu, list_of_items): Call push_menu_item with new parameter. (single_submenu): Set help string in widget value. (menu_highlight_callback): New function. (set_frame_menubar): Call lw_create_widget with new parameter list. (xmenu_show, xdialog_show): Ditto.
author Gerd Moellmann <gerd@gnu.org>
date Mon, 17 Jan 2000 09:13:23 +0000
parents 3ede6c50d7f5
children f440b9766968
line wrap: on
line source

#!/bin/sh
# Write into $1/subdirs.el a list of subdirs of directory $1.
cd $1
for file in *; do
    case $file in
	*.elc | *.el | term | RCS | CVS | Old | . | .. | =* | *~ | *.orig | *.rej)
	  ;;	
	*)
	    if [ -d $file ]; then
	      subdirs="\"$file\" $subdirs"
	    fi
	  ;;
    esac
done

if [ "x$subdirs" = x ]; then
  rm -f subdirs.el
else
  echo ";; In load-path, after this directory should come
;; certain of its subdirectories.  Here we specify them." > subdirs.el

  echo "(normal-top-level-add-to-load-path '($subdirs))" >> subdirs.el
fi