From 7e89168cd7823281b45b5120ff677591452bbd40 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Mon, 15 Jul 2019 17:45:05 -0400 Subject: src/2/ppt-mkpkgs: Define functions before use --- (limited to 'src/2/ppt-mkpkgs') diff --git a/src/2/ppt-mkpkgs b/src/2/ppt-mkpkgs index 9adb138..4bd49b1 100644 --- a/src/2/ppt-mkpkgs +++ b/src/2/ppt-mkpkgs @@ -4,16 +4,6 @@ set -eu PLAT= -main() -{ - PLAT="$(sed '1{s/^config-\([^ ][^ ]*\) (.*$/\1/;};1!q;' changelog)" - - make_common_pkg - make_base_pkg - make_build_time_pkgs - make_run_time_pkgs -} - info() { local fmt="${1}" @@ -93,4 +83,14 @@ make_run_time_pkgs() done } +main() +{ + PLAT="$(sed '1{s/^config-\([^ ][^ ]*\) (.*$/\1/;};1!q;' changelog)" + + make_common_pkg + make_base_pkg + make_build_time_pkgs + make_run_time_pkgs +} + main "${@}" -- cgit v0.9.1