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