Gentoo Archives: gentoo-commits

From: "Ulrich Mueller (ulm)" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-admin/eselect-emacs/files: emacs-updater digest-eselect-emacs-1.3-r2 digest-eselect-emacs-1.3-r1
Date: Wed, 09 Jan 2008 15:47:26
Message-Id: E1JCd9B-0001DF-PT@stork.gentoo.org
1 ulm 08/01/09 15:47:17
2
3 Added: emacs-updater digest-eselect-emacs-1.3-r2
4 Removed: digest-eselect-emacs-1.3-r1
5 Log:
6 Install emacs-updater shell script.
7 (Portage version: 2.1.4_rc14)
8
9 Revision Changes Path
10 1.1 app-admin/eselect-emacs/files/emacs-updater
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/eselect-emacs/files/emacs-updater?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/eselect-emacs/files/emacs-updater?rev=1.1&content-type=text/plain
14
15 Index: emacs-updater
16 ===================================================================
17 #!/bin/bash
18
19 # Licensed under GPL version 2
20 # Authors:
21 # Christian Faulhammer <opfer@g.o>
22 # Ulrich Mueller <ulm@g.o>
23
24 # Only set colours if output is not redirected
25 if tty -s <&1; then
26 BLUE=$'\e[34;01m'
27 GREEN=$'\e[32;01m'
28 RED=$'\e[31;01m'
29 YELLOW=$'\e[33;01m'
30 CYAN=$'\e[36;01m'
31 BOLD=$'\e[0;01m'
32 NORMAL=$'\e[0m'
33 fi
34
35 SITELISP=/usr/share/emacs/site-lisp
36 VERSION=0.3
37 TMPFILE="$(mktemp /tmp/emacs-updater.XXXXXX)"
38
39
40 message() {
41 local OUTPUT=$@
42 echo "${GREEN}*${NORMAL}${BOLD} ${OUTPUT}${NORMAL}"
43 }
44
45 warning() {
46 local OUTPUT=$@
47 echo "${YELLOW}*${NORMAL}${BOLD} ${OUTPUT}${NORMAL}"
48 }
49
50 failure() {
51 local OUTPUT=$@
52 echo "${RED}*${NORMAL}${BOLD} ${OUTPUT}${NORMAL}"
53 }
54
55 cat <<-EOF
56
57 Emacs updater version ${VERSION}
58 Written by the Gentoo Emacs team http://www.gentoo.org/proj/en/lisp/emacs/
59 Find packages that are installed in the wrong location
60
61 EOF
62
63 if ! [ -x /usr/bin/qfile ]; then
64 echo
65 failure "Please emerge app-portage/portage-utils to use this tool"
66 exit 1
67 fi
68
69 for sf in "${ROOT}${SITELISP}"/[0-9][0-9]*-gentoo.el
70 do
71 [ "${sf##*/}" = 00site-gentoo.el ] && continue
72 message "Processing ${sf##*/} ..."
73 qfile -qCR "${sf}" >> "${TMPFILE}"
74 done
75 echo
76
77 if [ ! -s "${TMPFILE}" ]; then
78 warning "No packages to update, quitting."
79 exit 2
80 fi
81
82 message "Packages with site files in the wrong location:"
83 cat "${TMPFILE}"
84
85 echo
86 echo -n "${BOLD}Remerge packages?${NORMAL} [${GREEN}Yes${NORMAL}/${RED}No${NORMAL}] "
87 read choice
88 echo
89 case "${choice}" in
90 y*|Y*|"")
91 ;;
92 *)
93 warning "Quitting."
94 exit 10 ;;
95 esac
96
97 emerge --oneshot --ask --verbose $(cat "${TMPFILE}")
98
99 warning "If a package is being rebuilt over and over again,"
100 warning "please report it on http://bugs.gentoo.org/"
101
102
103
104 1.1 app-admin/eselect-emacs/files/digest-eselect-emacs-1.3-r2
105
106 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/eselect-emacs/files/digest-eselect-emacs-1.3-r2?rev=1.1&view=markup
107 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/eselect-emacs/files/digest-eselect-emacs-1.3-r2?rev=1.1&content-type=text/plain
108
109 Index: digest-eselect-emacs-1.3-r2
110 ===================================================================
111 MD5 88516d0bfc23f41ffade3691f6a704ae eselect-emacs-1.3.tar.bz2 6597
112 RMD160 28552dc2e263bd26768120fc37433a14ee2feb12 eselect-emacs-1.3.tar.bz2 6597
113 SHA256 26ad557147a4bbf3757052d58c44874396a7724ea16af52c25e0df01f2178a29 eselect-emacs-1.3.tar.bz2 6597
114
115
116
117 --
118 gentoo-commits@l.g.o mailing list