blob: 3451abba8c9adf66965ac84e93f22b23eba9667c (
plain)
1 #!/bin/sh
2 #
3 # $Id: prtcreate,v 1.1.1.2 2017/04/17 02:23:32 opel Exp $
4 # (c) 2003 by Martin Opel <martin@obbl-net.de>
5 # (c) 2017 by The CRUX Project
6 #
7 # May be redistributed and modified under the terms of the GPL
8 # only usable with CRUX Linux, version 1.0 or higher.
9 #
10 # USE AT YOUR OWN RISK
11 #
12 # This script creates a Pkgfile in the current working directory with
13 # all necessary header information fields and an empty build() function.
14 # The port name is the name of the current working directory.
15
16 if [ -f Pkgfile ]; then
17 echo "Pkgfile exists!"
18 exit 1
19 fi
20
21 if [ -f /etc/prtcreate.conf ]; then
22 . /etc/prtcreate.conf
23 fi
24
25 cat <<EOF > Pkgfile
26 # Description:
27 # URL:
28 # Maintainer:$(echo " $maintainer_line")
29 # Depends on:
30
31 name=`basename $PWD`
32 version=
33 release=1
34 source=()
35
36 build() {
37 cd \$name-\$version
38 }
39 EOF
|