diff options
author | 2007-11-27 14:19:15 +0000 | |
---|---|---|
committer | 2007-11-27 14:19:15 +0000 | |
commit | 37bf747b3ab497584aae9b8500ea2c106a850416 (patch) | |
tree | f8f108f775265e1ba961a0f8f21c689ebd8794bd | |
parent | message is not defined, so use echo (diff) | |
download | emacs-tools-37bf747b3ab497584aae9b8500ea2c106a850416.tar.gz emacs-tools-37bf747b3ab497584aae9b8500ea2c106a850416.tar.bz2 emacs-tools-37bf747b3ab497584aae9b8500ea2c106a850416.zip |
Output about packages not being recognized correctly --> bug report
No useless emerge call if no packages to update
Output optimised
svn path=/emacs-extra/eselect-emacs/; revision=797
-rwxr-xr-x | emacs-updater.sh | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/emacs-updater.sh b/emacs-updater.sh index 804a3e1..abeb3c5 100755 --- a/emacs-updater.sh +++ b/emacs-updater.sh @@ -20,10 +20,17 @@ fi for sf in "${ROOT}/${SITELISP}"/[0-9][0-9]*-gentoo.el do - echo "Processing ${sf}" + echo "Processing ..." qfile -qC "${sf}" >> "${TMPFILE}" done + +if [[ $(cat ${TMPFILE}) == "" ]]; then + echo + echo "No packages to update, quitting." + exit 2 +fi + echo echo "Packages with site files in the wrong location:" cat "${TMPFILE}" @@ -42,3 +49,6 @@ case "${choice}" in esac emerge -av $(cat "${TMPFILE}") + +echo +echo "If a package is being rebuilt over and over again, please report it on http://bugs.gentoo.org/" |