summaryrefslogtreecommitdiffstats
path: root/src/2/ppt-mkpkgs
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-07-15 17:45:05 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-07-15 17:45:05 (EDT)
commit7e89168cd7823281b45b5120ff677591452bbd40 (patch)
treec8fbacc450ab9486da75aa378017b8167e56f32e /src/2/ppt-mkpkgs
parent6e46a695647f81b4a0cefdb0e22b0c665dc8fe5e (diff)
src/2/ppt-mkpkgs: Define functions before use
Diffstat (limited to 'src/2/ppt-mkpkgs')
-rw-r--r--src/2/ppt-mkpkgs20
1 files changed, 10 insertions, 10 deletions
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 "${@}"