blob: 6f254c337a82c65859fc201ffd20acf21a0e74a5 (
plain)
1 #!/bin/sh
2 #
3 # $Id: prtcreate,v 1.1.1.1 2003/08/27 11:43:05 opel Exp $
4 # (c) 2003 by Martin Opel <martin@obbl-net.de>
5 #
6 # May be redistributed and modified under the terms of the GPL
7 # only usable with CRUX Linux, version 1.0 or higher.
8 #
9 # USE AT YOUR OWN RISK
10 #
11 # This script creates a Pkgfile in the current working directory with
12 # all necessary header information fields and an empty build() function.
13 # The port name is the name of the current working directory.
14
15 if [ -f Pkgfile ]; then
16 echo "Pkgfile exists!"
17 exit 1
18 fi
19
20 cat <<EOF > Pkgfile
21 # Description:
22 # URL:
23 # Maintainer:
24 # Packager:
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
|