-
Notifications
You must be signed in to change notification settings - Fork 2
/
portz_dist
executable file
·45 lines (32 loc) · 876 Bytes
/
portz_dist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/bash
#
# This file is part of 'portz'
#
# Copyright (C) Zbigniew Zagorski <z.zagorski@gmail.com> and others,
# licensed to the public under the terms of the GNU GPL (>= 2)
# see the file COPYING for details
#
# I.e., do what you like, but keep copyright and there's NO WARRANTY.
#
PNAME=portz-dist
export PNAME
set -e
#set -x
portz_libdir=${portz_libdir-`pwd`}
. ${portz_libdir}/scripts/runtime.sh
. ${portz_scripts}/functions.sh
. ${portz_scripts}/package_defs.sh
if [ "$1" = --with-prefix ] ; then
export portz_dist_with_prefix=1
shift
fi
load_package $1
. ${portz_scripts}/build_defs.sh
setup_package_build_defs
build_command="$0 $package_path"
export build_command
PNAME="$PNAME[$package_name]"
SCRIPT_NAME="$PNAME"
. ${portz_scripts}/install_staging.sh
portz_step $(pwd) dist
# jedit: :tabSize=8:indentSize=4:noTabs=true:mode=shellscript: