From 38e8e54501201fd7a87327a43563d43e0237a5fd Mon Sep 17 00:00:00 2001 From: root Date: Wed, 19 Nov 2008 15:16:55 +0000 Subject: allow lbu package send to stdout by using filename '-' --- Makefile | 2 +- lbu | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 19111a8..529fef8 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -V=1.7 +V=1.7.1 P=alpine-conf PV=$(P)-$(V) APKF=$(PV).apk diff --git a/lbu b/lbu index 632608d..72e8a7a 100644 --- a/lbu +++ b/lbu @@ -273,7 +273,13 @@ cmd_package() { # actually commit unless dryrun mode if [ $rc -eq 0 ]; then - [ -z "$DRYRUN" ] && cp "$tmppkg" "$pkg" + if [ -z "$DRYRUN" ]; then + if [ "x$pkg" = "x-" ]; then + cat "$tmppkg" + else + cp "$tmppkg" "$pkg" + fi + fi vecho "Created $pkg" else rm -f "$CURRENT_TDB" -- cgit v1.2.3