Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 66906 Details for
Bug 103792
app-portage/gentoolkit-dev should contain a script to quickly unmask a specfic ebuild
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
new version of my unmask script
eunmask (text/plain), 1.93 KB, created by
postmodern
on 2005-08-26 00:15:46 UTC
(
hide
)
Description:
new version of my unmask script
Filename:
MIME Type:
Creator:
postmodern
Created:
2005-08-26 00:15:46 UTC
Size:
1.93 KB
patch
obsolete
>#!/bin/bash ># ># Copyright 2005-2006 Hal Brodigan ># Distributed under the terms of the GNU General Public License v2 ># ># Author: Hal Brodigan ># Created: Aug 14 15:24:47 PDT 2005 ># Purpose: A simple script that unmasks the version(s) of a package ># and copies the new package to an existing portage overlay. > >function usage() { > echo -e "eunmask v0.0.2: usage:\n\teunmask [-h | --help] [-k | --keyword KEYWORD]] category/package [VERSION ...]" >} > >source /etc/make.profile/make.defaults >source /etc/make.conf > >KEYWORD="$DEFAULT_ABI" >PACKAGE="" >PACKAGE_NAME="" >PACKAGE_VERSION="" > >set -- `getopt -l "keyword:,help" -n eunmask -u -- "k:h" "$@"` >while [ -n "$1" ] >do > case "$1" in > -k | --keyword) > KEYWORD="$2" > shift > ;; > -h | --help) > usage > exit > ;; > *) > break > ;; > esac > shift >done > >if [ "$1" = "--" ]; then > shift > if [ $# -eq 0 ]; then > usage > exit -1 > fi > > PACKAGE="$1" > PACKAGE_NAME=`echo $PACKAGE | cut -d/ -f2` > if [ $# -ge 2 ]; then > shift > PACKAGE_VERSION="$@" > fi >fi > > >if [ ! -d /usr/portage/$PACKAGE ]; then > echo "eunmask: invalid package name" > exit -1 >fi > >if [ -n "$PACKAGE_VERSION" ]; then > for i in $PACKAGE_VERSION > do > if [ ! -e /usr/portage/$PACKAGE/$PACKAGE_NAME-$i.ebuild ]; then > echo "eunmask: invalid package version" > exit -1 > fi > done >fi > >mkdir -p $PORTDIR_OVERLAY/$PACKAGE >cp -a /usr/portage/$PACKAGE/{ChangeLog,Manifest,files,metadata.xml} $PORTDIR_OVERLAY/$PACKAGE/ >if [ -n "$PACKAGE_VERSION" ]; then > for i in $PACKAGE_VERSION > do > cp -a /usr/portage/$PACKAGE/$PACKAGE_NAME-$i.ebuild $PORTDIR_OVERLAY/$PACKAGE/ > ekeyword $KEYWORD $PORTDIR_OVERLAY/$PACKAGE/$PACKAGE_NAME-$i.ebuild > ebuild $PORTDIR_OVERLAY/$PACKAGE/$PACKAGE_NAME-$i.ebuild digest > done >else > cp -a /usr/portage/$PACKAGE/$PACKAGE_NAME-*.ebuild $PORTDIR_OVERLAY/$PACKAGE/ > ekeyword $KEYWORD $PORTDIR_OVERLAY/$PACKAGE/$PACKAGE_NAME-*.ebuild > for i in `ls --color=none $PORTDIR_OVERLAY/$PACKAGE/$PACKAGE_NAME-*.ebuild` > do > ebuild $i digest > 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 103792
:
66900
| 66906