source: projects/specs/trunk/e/emacsen-common/show-vine-default.sh @ 2293

Revision 2293, 802 bytes checked in by munepi, 14 years ago (diff)

update: emacs22-22.3, emacs-23.2; NEW: emacs24-24.0.50: applied new vine-default system

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