summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-11-08 23:18:43 (EST)
committer P. J. McDermott <pjm@nac.net>2012-11-08 23:45:18 (EST)
commite1f1b3a7e9e0afbc640dede5d2ce1910767927fb (patch)
treed35463507dbdacd8a82b12fb525c0ddfbcffd2a6 /src
parent8c6b9a513101ed62c8cff682f35b1cf752a69818 (diff)
Split oh_buildsystem_do() & oh_buildsystem_find().
Diffstat (limited to 'src')
-rw-r--r--src/oh-autobuild.sh4
-rw-r--r--src/oh-autoclean.sh4
-rw-r--r--src/oh-autoconfigure.sh4
-rw-r--r--src/oh-autoinstall.sh4
-rw-r--r--src/oh-autotest.sh4
5 files changed, 15 insertions, 5 deletions
diff --git a/src/oh-autobuild.sh b/src/oh-autobuild.sh
index 1f24d5c..f76858f 100644
--- a/src/oh-autobuild.sh
+++ b/src/oh-autobuild.sh
@@ -48,7 +48,9 @@ main()
oh_buildsystems_init
- oh_buildsystem_do 'build' "${@}"
+ if sys="$(oh_buildsystem_find 'build')"; then
+ oh_buildsystem_do 'build' "${sys}" "${@}"
+ fi
}
main "${@}"
diff --git a/src/oh-autoclean.sh b/src/oh-autoclean.sh
index e0488bd..e5d1653 100644
--- a/src/oh-autoclean.sh
+++ b/src/oh-autoclean.sh
@@ -45,7 +45,9 @@ main()
oh_buildsystems_init
- oh_buildsystem_do 'clean' "${@}"
+ if sys="$(oh_buildsystem_find 'clean')"; then
+ oh_buildsystem_do 'clean' "${sys}" "${@}"
+ fi
}
main "${@}"
diff --git a/src/oh-autoconfigure.sh b/src/oh-autoconfigure.sh
index 6c524da..b56ac55 100644
--- a/src/oh-autoconfigure.sh
+++ b/src/oh-autoconfigure.sh
@@ -48,7 +48,9 @@ main()
oh_buildsystems_init
- oh_buildsystem_do 'configure' "${@}"
+ if sys="$(oh_buildsystem_find 'configure')"; then
+ oh_buildsystem_do 'configure' "${sys}" "${@}"
+ fi
}
main "${@}"
diff --git a/src/oh-autoinstall.sh b/src/oh-autoinstall.sh
index b50174e..6d494bc 100644
--- a/src/oh-autoinstall.sh
+++ b/src/oh-autoinstall.sh
@@ -48,7 +48,9 @@ main()
oh_buildsystems_init
- oh_buildsystem_do 'install' "${@}"
+ if sys="$(oh_buildsystem_find 'install')"; then
+ oh_buildsystem_do 'install' "${sys}" "${@}"
+ fi
}
main "${@}"
diff --git a/src/oh-autotest.sh b/src/oh-autotest.sh
index 7176c08..db5ffff 100644
--- a/src/oh-autotest.sh
+++ b/src/oh-autotest.sh
@@ -45,7 +45,9 @@ main()
oh_buildsystems_init
- oh_buildsystem_do 'test' "${@}"
+ if sys="$(oh_buildsystem_find 'test')"; then
+ oh_buildsystem_do 'test' "${sys}" "${@}"
+ fi
}
main "${@}"