summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Biermann <tbier@posteo.de>2020-08-22 14:02:47 +0200
committerJuergen Daubert <jue@jue.li>2020-08-22 14:02:47 +0200
commitb595a6aacd8ba59d49636e90ce0fa1a48cec99ca (patch)
treeade0e4e8fa8d4af1ba579a79ac059bda53d71a95
parentae5aef573ce61d7d33e543f41157208769fcd079 (diff)
downloadprt-utils-b595a6aacd8ba59d49636e90ce0fa1a48cec99ca.tar.gz
prt-utils-b595a6aacd8ba59d49636e90ce0fa1a48cec99ca.tar.xz
prtcreate: add feature to define the maintainer in /etc/prtcreate.conf
-rwxr-xr-xprtcreate6
-rw-r--r--prtcreate.113
2 files changed, 18 insertions, 1 deletions
diff --git a/prtcreate b/prtcreate
index 06c7189..3451abb 100755
--- a/prtcreate
+++ b/prtcreate
@@ -18,10 +18,14 @@ if [ -f Pkgfile ]; then
exit 1
fi
+if [ -f /etc/prtcreate.conf ]; then
+ . /etc/prtcreate.conf
+fi
+
cat <<EOF > Pkgfile
# Description:
# URL:
-# Maintainer:
+# Maintainer:$(echo " $maintainer_line")
# Depends on:
name=`basename $PWD`
diff --git a/prtcreate.1 b/prtcreate.1
index 4d3d372..088ca89 100644
--- a/prtcreate.1
+++ b/prtcreate.1
@@ -19,7 +19,20 @@ status of 1.
.SH OPTIONS
No options yet.
+.SH CONFIG
+You can create \fI/etc/prtcreate.conf\fP to configure a fixed maintainer line for your
+new Pkgfiles.
+
+.PP
+.nf
+ root@hostname:/root # cat /etc/prtcreate.conf
+ maintainer_line="Your Name, your_mail at provider dot tld"
+ root@hostname:/root #
+
+
.SH EXAMPLES
+.fi
+.PP
Call \fIprtcreate\fP in a new created directory:
.PP

Generated by cgit