cpt

[ARCHIVED] Carbs Packaging Tools
git clone git://git.ckyln.com/~cem/cpt.git
Log | Files | Refs | README | LICENSE

commit 68164c4d6779465529569534a9d1661fe87e3dd5
parent 29be95a3d38848315783fa632e4abbe04910d697
Author: Cem Keylan <cem@ckyln.com>
Date:   Sat,  4 Apr 2020 19:58:54 +0300

contrib: added kiss-cat

Diffstat:
Acontrib/kiss-cat | 14++++++++++++++
1 file changed, 14 insertions(+), 0 deletions(-)

diff --git a/contrib/kiss-cat b/contrib/kiss-cat @@ -0,0 +1,14 @@ +#!/bin/sh -e + +# Concatanate package files in the installed package database. +# File names are printed to stderr. + +[ "$1" ] || { printf 'usage: %s <pkg> [file] [file]\n' "${0##*/}" ; exit 1;} +kiss l "${pkg:=$1}" >/dev/null ; shift + +for file in ${*:-build depends sources version} ; do + [ -f "/var/db/kiss/installed/$pkg/$file" ] && { + printf '\033[1m%s:\033[m\n' "$file" >&2 + cat "/var/db/kiss/installed/$pkg/$file" + } +done