Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 2651 Details for
Bug 5623
emerge rsync helper utility for gentoolkit
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
a bit more robust
emerge-rsync (text/plain), 1.09 KB, created by
Marko Mikulicic
on 2002-07-28 19:37:53 UTC
(
hide
)
Description:
a bit more robust
Filename:
MIME Type:
Creator:
Marko Mikulicic
Created:
2002-07-28 19:37:53 UTC
Size:
1.09 KB
patch
obsolete
>#!/bin/sh >BASE=/var/cache >USE_COLORS=yes > ># end user configuration section >. /etc/make.globals >BEFORE=$BASE/ebuild-rsync.before >AFTER=$BASE/ebuild-rsync.after >NEW=$BASE/ebuild-rsync.new >REMOVED=$BASE/ebuild-rsync.removed > >if [ "$USE_COLORS" == "yes" ]; then > RED="\033[;31m" > GREEN="\033[;32m" > NORMAL="\033[m" >fi > >function portagetree () { > find $PORTDIR -type d -mindepth 2 -maxdepth 2 >} > ># do it >portagetree >$BEFORE >emerge $@ rsync >portagetree >$AFTER >diff $BEFORE $AFTER | grep ">" | sed "s/> //g" > $NEW >diff $BEFORE $AFTER | grep "<" | sed "s/< //g" > $REMOVED > ># cleanup >rm $BEFORE $AFTER > ># display new ebuilds >if ! diff -q $NEW /dev/null >/dev/null; then > echo > echo New ebuilds: > for i in $(cat $NEW); do > DESCRIPTION="$i/*.ebuild ${RED}does not exist$NORMAL" > EBUILD=$(ls $i/*.ebuild --sort=time 2>/dev/null | head -n 1) > [ -z "$EBUILD" ] || . $EBUILD > echo -e $GREEN${i##$PORTDIR/}$NORMAL: $DESCRIPTION > done >fi > ># display removed ebuilds >if ! diff -q $REMOVED /dev/null >/dev/null; then > echo > echo Removed ebuilds: > for i in $(cat $REMOVED); do > echo -e $RED${i##$PORTDIR/}$NORMAL > done >fi >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 5623
:
2616
|
2617
| 2651 |
5354