diff options
author | Michał Górny <mgorny@gentoo.org> | 2012-04-09 16:30:38 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2012-04-09 17:11:14 +0200 |
commit | a2b368da3c260edb3196a3a9c8dd3cc92d36b1b4 (patch) | |
tree | ff5473cf244813b221f34f24cbc97cbe2f3b4c7d /scripts/use_desc_gen.sh | |
parent | sys-process/ts: Execute tests more portably thanks to mgorny. (diff) | |
download | sunrise-a2b368da3c260edb3196a3a9c8dd3cc92d36b1b4.tar.gz sunrise-a2b368da3c260edb3196a3a9c8dd3cc92d36b1b4.tar.bz2 sunrise-a2b368da3c260edb3196a3a9c8dd3cc92d36b1b4.zip |
Use egencache instead of custom use.local.desc gen.
Diffstat (limited to 'scripts/use_desc_gen.sh')
-rw-r--r-- | scripts/use_desc_gen.sh | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/scripts/use_desc_gen.sh b/scripts/use_desc_gen.sh deleted file mode 100644 index 54f4dc148..000000000 --- a/scripts/use_desc_gen.sh +++ /dev/null @@ -1,56 +0,0 @@ -#!/bin/sh -# Written by Douglas Goldstein <cardoe@gentoo.org> -# This code is hereby placed into the public domain -# -# $Id: use_desc_gen.sh,v 1.6 2008/08/23 21:28:28 robbat2 Exp $ - -usage() { - echo "$(basename "$1") /path/to/portage/tree" - exit 1; -} - -if [ $# -ne 1 ]; then - usage "$0"; -fi - -if [ "x${1}" = "x-h" -o "x${1}" = "x--help" ]; then - usage "$0"; -fi - -if [ ! -f "${1}/profiles/use.local.desc" ]; then - usage "$0"; -fi - -pid=$(echo $$) - -# make list of categories that we want to remove from current use.local.desc -#cat "${1}/profiles/use.local.desc" | sed '1,/# The following categories/d;/# End of metadata categories/,$d;s/^../^/' > /tmp/${pid}.grep - -# we also want to remove comments and blank lines -#echo "^#" >> /tmp/${pid}.grep -#echo "^$" >> /tmp/${pid}.grep - -# make list of categories to process with use_desc_gen (same as above without grep rule) -#cat "${1}/profiles/use.local.desc" | sed '1,/# The following categories/d;/# End of metadata categories/,$d;s/^..//' > /tmp/${pid}.categories - -# take comments from existing use.local.desc -grep '^#' "${1}/profiles/use.local.desc" > /tmp/${pid}.use.local.desc || exit 2 -echo "" >> /tmp/${pid}.use.local.desc || exit 2 - -# use list from step #1 to filter current use.local.desc and add un-converted categories to new use.local.desc -#grep -v -f /tmp/${pid}.grep "${1}/profiles/use.local.desc" > /tmp/${pid}.new.use - -# the secret sauce, append to new use.local.desc -python2 scripts/use_desc_gen.py --repo_path "${1}" > /tmp/${pid}.new.use || exit 2 - -# let's keep it sorted: use major category, minor category, and package name -# as primary, secondary, and tertiary sort keys, respectively -sort -t: -k1,1 -k2 /tmp/${pid}.new.use | sort -s -t/ -k1,1 \ - >> /tmp/${pid}.use.local.desc || exit 2 - -# clean up -#rm -rf /tmp/${pid}.categories -#rm -rf /tmp/${pid}.grep -rm -rf /tmp/${pid}.new.use - -mv /tmp/${pid}.use.local.desc profiles/use.local.desc |