view update-subdirs @ 27071:d647366b1464

(x_create_x_image_and_pixmap): Remove parameter file. All calls adjusted. (x_build_heuristic_mask): Likewise. (xbm_load_image_from_file): Change error output. (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load) (gif_load, gs_load, x_kill_gs_process): Ditto.
author Gerd Moellmann <gerd@gnu.org>
date Sat, 01 Jan 2000 10:34:55 +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