summaryrefslogtreecommitdiffstats
path: root/easy_e17.sh
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-03-26 15:08:11 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2012-03-26 15:08:11 +0200
commit01a9f531367dba47c6f7dfc78ed3e3d72d1b0232 (patch)
treef8b1d626a13ef47c70bc3484ad0b705782e2bc87 /easy_e17.sh
parent6ef9604023f64b202f4e6a8bb29151897f083d44 (diff)
downloadbin-01a9f531367dba47c6f7dfc78ed3e3d72d1b0232.zip
bin-01a9f531367dba47c6f7dfc78ed3e3d72d1b0232.tar.gz
easy_e17.sh: add ctags file generation
Diffstat (limited to 'easy_e17.sh')
-rwxr-xr-xeasy_e17.sh17
1 files changed, 16 insertions, 1 deletions
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=<name> = ctags output (default :$ctags_file)"
+ echo " --ctags-args=<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/"