source: projects/specs/trunk/e/emacs/showvdefaultemacs @ 1273

Revision 1273, 852 bytes checked in by munepi, 14 years ago (diff)

updated emacs and merged some patches and files

  • Property svn:executable set to *
Line 
1#!/bin/bash
2#       $Id: showemacsvl,v 1.2 2009/05/20 15:31:29 munepi Exp munepi $ 
3
4# showemacsvl --version [version] [optional: package list]
5if [ $# -ne 1 ]; then
6    cat<<EOF
7Usage:  $(basename $0) <version>
8EOF
9    exit 1
10fi
11
12VERSION=$1
13
14if [ $(egrep -m 1 $VERSION /var/lib/emacsen-common/installed-flavors) ]; then
15    FLAVOR=$(egrep -m 1 $VERSION /var/lib/emacsen-common/installed-flavors)
16else
17    exit 1
18fi
19
20[ -d /etc/${FLAVOR} ] || exit 1
21
22ORDER="base faces"
23ORDER="${ORDER} $(ls /etc/${FLAVOR}/site-start.d/*-init.el | \
24    sed -e "s!.*/[0-9]*\(.*\)-init\.el!\1!g")"
25
26LIST="$(find /usr/share/${FLAVOR}/site-lisp/ \
27    -regex '.*/vine-default.*\.el')"
28
29for PKG in $ORDER; do
30    if [ $(echo "$LIST" | egrep $PKG) ]; then
31        EL=$(echo "$LIST" | egrep $PKG | head -1)
32        echo ";;; Begin $EL"
33        cat $EL
34        echo ";;; End of $EL"
35        echo ""
36    fi
37done
38
39exit
40
Note: See TracBrowser for help on using the repository browser.