diff options
| author | Dave Love | 1999-10-03 15:56:58 +0000 |
|---|---|---|
| committer | Dave Love | 1999-10-03 15:56:58 +0000 |
| commit | a4a9692da15ec1531a5075b671b62ebf1f2b9d92 (patch) | |
| tree | 13d2395598273a1e6667211e29c6d286480d65b6 /update-subdirs | |
| parent | d7f3b2023f6105f04e90791ee19efd5a872ce33a (diff) | |
| download | emacs-a4a9692da15ec1531a5075b671b62ebf1f2b9d92.tar.gz emacs-a4a9692da15ec1531a5075b671b62ebf1f2b9d92.zip | |
#
Diffstat (limited to 'update-subdirs')
| -rwxr-xr-x | update-subdirs | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/update-subdirs b/update-subdirs new file mode 100755 index 00000000000..94eb1fd4e28 --- /dev/null +++ b/update-subdirs | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | # Write into $1/subdirs.el a list of subdirs of directory $1. | ||
| 3 | cd $1 | ||
| 4 | for file in *; do | ||
| 5 | case $file in | ||
| 6 | *.elc | *.el | term | RCS | Old | . | .. | =* | *~ | *.orig | *.rej) | ||
| 7 | ;; | ||
| 8 | *) | ||
| 9 | if [ -d $file ]; then | ||
| 10 | subdirs="\"$file\" $subdirs" | ||
| 11 | fi | ||
| 12 | ;; | ||
| 13 | esac | ||
| 14 | done | ||
| 15 | |||
| 16 | if [ "x$subdirs" = x ]; then | ||
| 17 | rm -f subdirs.el | ||
| 18 | else | ||
| 19 | echo ";; In load-path, after this directory should come | ||
| 20 | ;; certain of its subdirectories. Here we specify them." > subdirs.el | ||
| 21 | |||
| 22 | echo "(normal-top-level-add-to-load-path '($subdirs))" >> subdirs.el | ||
| 23 | fi | ||