blob: 06c718984c27e77633905c7bd381588b7362cfdf (
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 cat <<EOF > Pkgfile
22 # Description:
23 # URL:
24 # Maintainer:
25 # Depends on:
26
27 name=`basename $PWD`
28 version=
29 release=1
30 source=()
31
32 build() {
33 cd \$name-\$version
34 }
35 EOF
|