This patch adds a --ctags option which automatically invokes
"make tags" in the build directory.
Signed-off-by: Jeff Mahoney
---
scripts/sequence-patch.sh | 17 +++++++++++++++--
1 file changed, 15 insertions(+), 2 deletions(-)
--- a/scripts/sequence-patch.sh
+++ b/scripts/sequence-patch.sh
@@ -37,7 +37,7 @@ sles9* | sles10* | sle10* | 9.* | 10.* |
esac
usage() {
- echo "SYNOPSIS: $0 [-qv] [--symbol=...] [--dir=...] [--combine] [--fast] [last-patch-name] [--vanilla] [--fuzz=NUM] [--build-dir=PATH] [--config=ARCH-FLAVOR [--kabi]]"
+ echo "SYNOPSIS: $0 [-qv] [--symbol=...] [--dir=...] [--combine] [--fast] [last-patch-name] [--vanilla] [--fuzz=NUM] [--build-dir=PATH] [--config=ARCH-FLAVOR [--kabi]] [--ctags]"
exit 1
}
@@ -49,7 +49,7 @@ if $have_arch_patches; then
else
arch_opt=""
fi
-options=`getopt -o qvd:F: --long quilt,no-quilt,$arch_opt,symbol:,dir:,combine,fast,vanilla,fuzz,build-dir:,config:,kabi -- "$@"`
+options=`getopt -o qvd:F: --long quilt,no-quilt,$arch_opt,symbol:,dir:,combine,fast,vanilla,fuzz,build-dir:,config:,kabi,ctags -- "$@"`
if [ $? -ne 0 ]
then
@@ -69,6 +69,7 @@ CONFIG=
CONFIG_ARCH=
CONFIG_FLAVOR=
KABI=
+CTAGS=
while true; do
case "$1" in
@@ -121,6 +122,9 @@ while true; do
--kabi)
KABI=yes
;;
+ --ctags)
+ CTAGS=yes
+ ;;
--)
shift
break ;;
@@ -494,6 +498,15 @@ if test -n "$CONFIG"; then
fi
fi
+if test -n "$CTAGS"; then
+ if ctags --version > /dev/null; then
+ echo "[ Generating ctags (this may take a while)]"
+ make -s --no-print-directory -C "$PATCH_DIR" O="$SP_BUILD_DIR" tags
+ else
+ echo "[ Could not generate ctags: ctags not found ]"
+ fi
+fi
+
[ $# -gt 0 ] && exit $status
if ! $have_defconfig_files || test ! -e config.conf; then
--
To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-kernel+help@opensuse.org