diff options
| author | fuzzyray <fuzzyray@gentoo.org> | 2009-05-18 20:05:37 +0000 |
|---|---|---|
| committer | fuzzyray <fuzzyray@gentoo.org> | 2009-05-18 20:05:37 +0000 |
| commit | ce8ff8c6d503a9d2adffdc6ba97e4c16b4821fa3 (patch) | |
| tree | 7d2a50999a892294b73c5f3c177e0ce638ed3819 /src/eread | |
| parent | cd5a8e80f949f649b6d2b174bc899f1f092684fd (diff) | |
| download | gentoolkit-ce8ff8c6d503a9d2adffdc6ba97e4c16b4821fa3.tar.gz | |
Remove obsolete gentoolkit src directory
svn path=/trunk/gentoolkit/; revision=640
Diffstat (limited to 'src/eread')
| -rw-r--r-- | src/eread/AUTHORS | 2 | ||||
| -rw-r--r-- | src/eread/Makefile | 20 | ||||
| -rwxr-xr-x | src/eread/eread | 94 | ||||
| -rw-r--r-- | src/eread/eread.1 | 12 |
4 files changed, 0 insertions, 128 deletions
diff --git a/src/eread/AUTHORS b/src/eread/AUTHORS deleted file mode 100644 index 68064ce..0000000 --- a/src/eread/AUTHORS +++ /dev/null @@ -1,2 +0,0 @@ -Author: Donnie Berkholz <dberkholz@gentoo.org> -Updated by: Uwe Klosa <uwe.klosa@gmail.com> diff --git a/src/eread/Makefile b/src/eread/Makefile deleted file mode 100644 index 1d9b284..0000000 --- a/src/eread/Makefile +++ /dev/null @@ -1,20 +0,0 @@ -# Copyright 2006 Gentoo Technologies, Inc. -# Distributed under the terms of the GNU General Public License v2 -# -# $Header$ - -include ../../makedefs.mak - -all: - echo "ELY (n.) The first, tiniest inkling you get that something, somewhere, has gone terribly wrong." - -dist: - mkdir -p ../../$(distdir)/src/eread - cp AUTHORS Makefile eread eread.1 ../../$(distdir)/src/eread/ - -install: - - install -m 0755 eread $(bindir)/ - install -d $(docdir)/eread - install -m 0644 AUTHORS $(docdir)/eread/ - install -m 0644 eread.1 $(mandir)/ diff --git a/src/eread/eread b/src/eread/eread deleted file mode 100755 index c6d4de1..0000000 --- a/src/eread/eread +++ /dev/null @@ -1,94 +0,0 @@ -#!/bin/bash - -# This is a script to read portage log items from einfo, ewarn etc, new in the -# portage-2.1 series. -# -# Author: Donnie Berkholz <spyderous@gentoo.org> -# Updated by: Uwe Klosa <uwe.klosa@gmail.com> - -# set decent PATH for bug 172969 - -PATH=/usr/bin:/bin:${PATH} - -# Set ELOGDIR -PORT_LOGDIR="$(portageq envvar PORT_LOGDIR)" -[ "$PORT_LOGDIR" = "" ] && PORT_LOGDIR="/var/log/portage" -ELOGDIR="$PORT_LOGDIR/elog" - -# Verify that ELOGDIR exists -if [ ! -d "$ELOGDIR" ]; then - echo "ELOG directory: $ELOGDIR does not exist!" - exit 1 -fi - -# Use the pager from the users environment -[ -z "$PAGER" ] && PAGER="less" - -# Set up select prompt -PS3="Choice? " - -select_loop() { - ANY_FILES=$(find . -type f) - ANY_FILES=$(echo ${ANY_FILES} | sed -e "s:\./::g") - - if [[ -z ${ANY_FILES} ]]; then - echo "No log items to read" - break - fi - - echo - echo "This is a list of portage log items. Choose a number to view that file or type q to quit." - echo - - # Pick which file to read - select FILE in ${ANY_FILES}; do - case ${REPLY} in - q) - echo "Quitting" - QUIT="yes" - break - ;; - *) - if [ -f "$FILE" ]; then - ${PAGER} ${FILE} - read -p "Delete file? [y/N] " DELETE - case ${DELETE} in - q) - echo "Quitting" - QUIT="yes" - break - ;; - y|Y) - rm -f ${FILE} - SUCCESS=$? - if [[ ${SUCCESS} = 0 ]]; then - echo "Deleted ${FILE}" - else - echo "Unable to delete ${FILE}" - fi - ;; - # Empty string defaults to N (save file) - n|N|"") - echo "Saving ${FILE}" - ;; - *) - echo "Invalid response. Saving ${FILE}" - ;; - esac - else - echo - echo "Invalid response." - fi - ;; - esac - break - done -} - -pushd ${ELOGDIR} > /dev/null - -until [[ -n ${QUIT} ]]; do - select_loop -done - -popd > /dev/null diff --git a/src/eread/eread.1 b/src/eread/eread.1 deleted file mode 100644 index 5e18214..0000000 --- a/src/eread/eread.1 +++ /dev/null @@ -1,12 +0,0 @@ -.TH "eread" "1" "1.0" "Donnie Berkholz" "gentoolkit" -.SH "NAME" -.LP -eread \- Gentoo: Tool to display and manage ELOG files from portage -.SH "SYNTAX" -.LP -eread -.SH "DESCRIPTION" -.LP -This tool is used to display and manage ELOG files produced by portage version 2.1 and higher. -.SH "ENVIRONMENT VARIABLES" -The eread utility uses the PAGER environment variable to display the ELOG files. If the variable is not set, it defaults to /usr/bin/less. |
