From decf98691c9ea9b2e5f7f598af4cf05e12fffb3d Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Fri, 4 Sep 2020 16:08:28 +0900 Subject: DEB build scripts: added support for ctags. Signed-off-by: Michele Calgaro --- debian/_buildscripts/local/update_repositories.sh | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'debian/_buildscripts/local/update_repositories.sh') diff --git a/debian/_buildscripts/local/update_repositories.sh b/debian/_buildscripts/local/update_repositories.sh index 91425f8a7..66bf7bc6b 100755 --- a/debian/_buildscripts/local/update_repositories.sh +++ b/debian/_buildscripts/local/update_repositories.sh @@ -5,6 +5,7 @@ flag_INCREMENTAL="n" flag_VERBOSE_LOG="n" flag_SWITCH_ONLY="n" +flag_SKIP_TAGS="n" OVERRIDE_DEFAULT_REPO_BRANCH="" for ((idx=1; idx<=$#; idx++)); do arg="${!idx}" @@ -25,7 +26,13 @@ for ((idx=1; idx<=$#; idx++)); do fi elif [ "$arg" = "-so" ]; then # switch branch only (Switch Only) flag_SWITCH_ONLY="y" && ((idx++)) - OVERRIDE_DEFAULT_REPO_BRANCH="${!idx}" + if ! [[ "${!idx}" =~ ^- ]]; then + OVERRIDE_DEFAULT_REPO_BRANCH="${!idx}" + else + ((idx--)) + fi + elif [ "$arg" = "-st" ]; then # skip ctags generation (Skip Tags) + flag_SKIP_TAGS="y" fi done @@ -245,3 +252,9 @@ fi # Update completed [ -f "$UPDATE_LOCK_FILENAME" ] && rm "$UPDATE_LOCK_FILENAME" cd $SCRIPT_DIR + +# Generate ctags +if [ "$flag_SKIP_TAGS" != "y" ]; then + $SCRIPT_DIR/generate_tags.sh +fi + -- cgit v1.2.1