]>
code.delx.au - gnu-emacs-elpa/blob - packages/test-simple/compute-lispdir.sh
2 # Figures out a reasonable --prefix
4 typeset
-i DEBUG
=${DEBUG:-0}
5 EMACS_PROG
=${EMACS_PROG:-emacs}
6 list
=$
($EMACS_PROG --batch --no-splash --eval '(message (substring (format "%s" load-path) 1 -1))' 2>&1)
8 if (( rc
!= 0 )) ; then
9 echo >&2 "Something went running $EMACS_PROG"
14 if [[ -d $dir ]] ; then
17 ((DEBUG
)) && echo "site lisp: $dir"
25 if [[ -d $dir ]] ; then
27 */emacs
/2[34]\.
[0-9]/site-lisp
)
28 ((DEBUG
)) && echo "versioned site lisp: $dir"
36 if [[ -d $dir ]] ; then
38 */emacs
/2[34]\.
[0-9]/site-lisp
)
39 ((DEBUG
)) && echo "versioned site lisp: $dir"