summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2009-11-05 21:46:02 +0100
committerMarc Kleine-Budde <mkl@pengutronix.de>2009-11-06 09:39:46 +0100
commit5b09a36173b2bbd4f418fad9bdab9aef981e3435 (patch)
tree3d73d7ba186dc29d05609b979bed04192f0ea94b /scripts
parent34133b78484f2cb3ef5b42943143758933569193 (diff)
downloadptxdist-5b09a36173b2bbd4f418fad9bdab9aef981e3435.tar.gz
ptxdist-5b09a36173b2bbd4f418fad9bdab9aef981e3435.tar.xz
[ptxd_make_world_tags] add generic "tags" target
To generate tag for a certain pacakge, call ptxdist this way: $ ptxdist tags <package> PTXdist basically runs: $ make <PKG>_TAGS_OPT <PKG>_TAGS_OPT default to "tags", which is a good default for autotoolizised packages. Of course it can be overwritten on a per package base, e.g.: BUSYBOX_TAGS_OPT := tags TAGS scope Why: 1) non autotool based build system, that has cscope support. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/ptxd_make_world_common.sh8
-rw-r--r--scripts/lib/ptxd_make_world_tags.sh25
2 files changed, 33 insertions, 0 deletions
diff --git a/scripts/lib/ptxd_make_world_common.sh b/scripts/lib/ptxd_make_world_common.sh
index b163a692d..bfc0d0f60 100644
--- a/scripts/lib/ptxd_make_world_common.sh
+++ b/scripts/lib/ptxd_make_world_common.sh
@@ -123,6 +123,14 @@ ptxd_make_world_init_compat() {
esac
+ #
+ # pkg_tags_opt
+ #
+ # default: "tags"
+ #
+ pkg_tags_opt="${pkg_tags_opt:-tags}"
+
+
# pkg_env
case "${pkg_type}" in
target) pkg_env="${PTXDIST_CROSS_ENV_PKG_CONFIG}" ;;
diff --git a/scripts/lib/ptxd_make_world_tags.sh b/scripts/lib/ptxd_make_world_tags.sh
new file mode 100644
index 000000000..2a04269ec
--- /dev/null
+++ b/scripts/lib/ptxd_make_world_tags.sh
@@ -0,0 +1,25 @@
+#!/bin/bash
+#
+# Copyright (C) 2009 by Marc Kleine-Budde <mkl@pengutronix.de>
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# call the tagsr
+#
+ptxd_make_world_tags() {
+ ptxd_make_world_init &&
+
+ eval \
+ "${pkg_path}" \
+ "${pkg_env}" \
+ "${pkg_make_env}" \
+ "${MAKE}" -C "${pkg_build_dir}" \
+ "${pkg_make_opt}" \
+ "${pkg_make_par}" \
+ "${pkg_tags_opt}"
+}
+export -f ptxd_make_world_tags