From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id CA81E138A3F for ; Sun, 5 Apr 2015 19:39:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 53320E09CF; Sun, 5 Apr 2015 19:39:41 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0A3DDE09CF for ; Sun, 5 Apr 2015 19:39:41 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7E3D5340991 for ; Sun, 5 Apr 2015 19:39:34 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9215615489 for ; Sun, 5 Apr 2015 19:39:31 +0000 (UTC) From: "Michael Palimaka" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michael Palimaka" Message-ID: <1428262709.1f39958e185f4901e2307063047611667be5016b.kensington@gentoo> Subject: [gentoo-commits] proj/kde:master commit in: Documentation/maintainers/ X-VCS-Repository: proj/kde X-VCS-Files: Documentation/maintainers/keywords-bump.sh X-VCS-Directories: Documentation/maintainers/ X-VCS-Committer: kensington X-VCS-Committer-Name: Michael Palimaka X-VCS-Revision: 1f39958e185f4901e2307063047611667be5016b X-VCS-Branch: master Date: Sun, 5 Apr 2015 19:39:31 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 270c86a3-63b9-4ddd-844e-a2c2c948fba1 X-Archives-Hash: 3236c6da588a9b056d591cee33912d0f commit: 1f39958e185f4901e2307063047611667be5016b Author: Michael Palimaka gentoo org> AuthorDate: Sun Apr 5 19:38:29 2015 +0000 Commit: Michael Palimaka gentoo org> CommitDate: Sun Apr 5 19:38:29 2015 +0000 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=1f39958e [Documentation] Add script to create package.* files. Documentation/maintainers/keywords-bump.sh | 59 ++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/Documentation/maintainers/keywords-bump.sh b/Documentation/maintainers/keywords-bump.sh new file mode 100755 index 0000000..31fd669 --- /dev/null +++ b/Documentation/maintainers/keywords-bump.sh @@ -0,0 +1,59 @@ +#!/bin/sh + +: ${PORTDIR:="$(pwd)"} + +help() { + echo Simple tool to bump KDE package.* files. + echo + echo Given a set name, copies the live package.* files to the new + echo version and updates appropriate. + echo + echo Reads PORTDIR from your enviroment, defaulting to the current directory. + echo + echo Usage: keyword-bump.sh SETNAME DESTINATIONVERSION + echo Example: keyword-bump.sh kde-plasma 5.1 + exit 0 +} + +pretty_setname() { + local set="${1}" + echo ${set} | tr "-" " " | sed -e "s/\b\(.\)/\u\1/g" -e "s/kde/KDE/i" +} + +SETNAME="$1" +DESTINATIONVERSION="$2" +TARGET="${SETNAME}-${DESTINATIONVERSION}" + +if [[ $1 == "--help" ]] ; then + help +fi + +if [[ -z "${SETNAME}" || -z "${DESTINATIONVERSION}" ]] ; then + echo ERROR: Not enough arguments + echo + help +fi + +pushd "${PORTDIR}/Documentation" > /dev/null + +pushd package.unmask > /dev/null +cp -r .${SETNAME}-live .${TARGET} +pushd .${TARGET} > /dev/null +rm ${SETNAME}-live +ln -s ../../../sets/${TARGET} ${TARGET} +echo "# You can use this file to mask/unmask the $(pretty_setname ${TARGET}) release." > _HEADER_ +echo "# Edit Documentation/package.unmask/.${TARGET}/ files instead." >> _HEADER_ +popd > /dev/null +popd > /dev/null + +pushd package.accept_keywords > /dev/null +cp -r .${SETNAME}-live.base .${TARGET} +pushd .${TARGET} > /dev/null +rm ${SETNAME}-live +ln -s ../../../sets/${TARGET} ${TARGET} +echo "# You can use this file to keyword/unkeyword the $(pretty_setname ${TARGET}) release." > _HEADER_ +echo "# Edit Documentation/package.accept_keywords/.${TARGET}/ files instead." >> _HEADER_ +popd > /dev/null +popd > /dev/null + +popd > /dev/null