From e56fde89d78cc20bb1693f47e29f30f9a6912cfc Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Sun, 28 Sep 2014 23:23:54 +0200 Subject: xnew: add support for sub package. --- xnew | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'xnew') diff --git a/xnew b/xnew index 3b02781..236b796 100755 --- a/xnew +++ b/xnew @@ -3,6 +3,7 @@ PKG=${1?no package name given} srcdir=$(xdistdir)/srcpkgs +shift mkdir $srcdir/$PKG @@ -31,4 +32,32 @@ distfiles="" checksum=badbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadb EOF +for subpkg; do + ln -sr -- "$srcdir/$PKG" "$srcdir/$subpkg" + cat >>$srcdir/$PKG/template <>$srcdir/$PKG/template <>$srcdir/$PKG/template <>$srcdir/$PKG/template +done + exec ${EDITOR:-vim} +3 $srcdir/$PKG/template -- cgit 1.4.1