diff options
author | Tim Biermann <tbier@posteo.de> | 2020-08-22 14:02:47 +0200 |
---|---|---|
committer | Juergen Daubert <jue@jue.li> | 2020-08-22 14:02:47 +0200 |
commit | b595a6aacd8ba59d49636e90ce0fa1a48cec99ca (patch) | |
tree | ade0e4e8fa8d4af1ba579a79ac059bda53d71a95 | |
parent | ae5aef573ce61d7d33e543f41157208769fcd079 (diff) | |
download | prt-utils-b595a6aacd8ba59d49636e90ce0fa1a48cec99ca.tar.gz prt-utils-b595a6aacd8ba59d49636e90ce0fa1a48cec99ca.tar.xz |
prtcreate: add feature to define the maintainer in /etc/prtcreate.conf
-rwxr-xr-x | prtcreate | 6 | ||||
-rw-r--r-- | prtcreate.1 | 13 |
2 files changed, 18 insertions, 1 deletions
@@ -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 |