From 30eeec30515a3bfe47872528c1ef09ac861d561b Mon Sep 17 00:00:00 2001 From: Piotr Wójcik Date: Sat, 14 Dec 2019 15:34:46 +0100 Subject: xnew: append subpkgs Closes: #164 [via git-merge-pr] --- xnew | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'xnew') diff --git a/xnew b/xnew index 49fa5a5..8473d48 100755 --- a/xnew +++ b/xnew @@ -1,6 +1,11 @@ #!/bin/sh -e # xnew PKG - create XBPS template template +if [ "$1" = "-a" ]; then + append=1 + shift +fi + PKG=${1?no package name given} srcdir=$(xdistdir)/srcpkgs shift @@ -29,6 +34,8 @@ case "$PKG" in distfiles="$homepage\${pkgname}-\${version}.$ext" esac +if [ -z "$append" ]; then + mkdir $srcdir/$PKG cat >$srcdir/$PKG/template <>$srcdir/$PKG/template <