3 ##########################################
4 ### user setting, change if needed ###
8 ##########################################
12 # NOTE: This script must reside in the main xonotic repo directory
23 cscope_args="$cscope_args"" -c"
28 # Windows: mingw version of cscope can't be used as it writes code path
29 # in Unix format to the index, making it broken for Windows apps that use it
30 if [ -e cscope.exe ] ; then
31 cscope_cmd="$PWD""/cscope.exe "
32 cscope_args="$cscope_args"" -X"
37 echo Updating qcsrc index...
39 cd data/xonotic-data.pk3dir/qcsrc
40 find -name '*.inc' -or -name '*.q[ch]' > cscope.files
41 $cscope_cmd$cscope_args
50 echo Updating DP index...
52 $cscope_cmd$cscope_args
63 read -n1 -r -p 'Press any key to exit.' key