From 01a9f531367dba47c6f7dfc78ed3e3d72d1b0232 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Mon, 26 Mar 2012 15:08:11 +0200 Subject: easy_e17.sh: add ctags file generation --- easy_e17.sh | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/easy_e17.sh b/easy_e17.sh index 544082f..a8b7a12 100755 --- a/easy_e17.sh +++ b/easy_e17.sh @@ -21,6 +21,10 @@ src_cache_path="$tmp_path/src_cache" src_path="$HOME/e17_src" conf_files="/etc/easy_e17.conf $HOME/.easy_e17.conf $PWD/.easy_e17.conf" +ctags_enabled=0 +ctags_file="$HOME/share/ctags/efl.tags" +ctags_args="-R --c-kinds=+p --fields=+iaS" + ewk_enabled=0 ewk_src_url="http://svn.webkit.org/repository/webkit/trunk" #/Source" ewk_src_rev="HEAD" @@ -214,6 +218,9 @@ function help () echo " after installation" echo " -e, --skip-errors = continue compiling even if there is" echo " an error" + echo " -t, --ctags-enabled = enable ctags generation" + echo " --ctags-file= = ctags output (default :$ctags_file)" + echo " --ctags-args= = ctags arguments (default :$ctags_args)" echo " -w, --wait = don't exit the script after finishing," echo " this allows 'xterm -e ./easy_e17.sh -i'" echo " without closing the xterm" @@ -417,7 +424,9 @@ function parse_args () -w|--wait) wait=1 ;; -n|--disable-notification) notification_disabled=1 ;; -k|--keep) keep=1 ;; - + -t|--ctags-enabled) ctags_enabled=1 ;; + --ctags-file) ctags_file=$value;; + --ctags-args) ctags_args=$value;; -l|--low) nice_level=19 ;; --normal) ;; -h|--high) nice_level=-20 ;; @@ -1424,6 +1433,12 @@ else set_notification "normal" "Script finished successful" fi +if [ $ctags_enabled -eq 1 ]; then + open_header " generate ctags" + ctags $ctags_args -o $ctags_file $install_path/include + echo "- $ctags_file" +fi + open_header " YEAHAƏY !!" echo echo " you might like to type $ sudo ln -s $install_path/share/xsessions/enlightenment.desktop /usr/share/xsessions/" -- cgit v1.1-2-g2b99