File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /bin/bash
22
33# create cscope.out
4- echo " Creating cscope.out ..."
4+ echo " Creating Cscope ..."
55
66# choose cscope path first
77if [ -f " ${DEST} /files" ]; then
1212
1313# process tags by langugage
1414echo " |- generate ${TMP} "
15- ${CSCOPE_CMD} ${OPTIONS} " ${FILES} "
15+ ${CSCOPE_CMD} -f " ${TMP} " ${OPTIONS} " ${FILES} "
1616
1717# replace old file
1818if [ -f " ${TMP} " ]; then
Original file line number Diff line number Diff line change 1+ @ echo off
2+ rem create cscope.out
3+ echo Creating Cscope...
4+
5+ rem choose ctags path first
6+ if exist " %DEST% \files" (
7+ set FILES = " %DEST% \files"
8+ )
9+
10+ rem process tags by langugage
11+ echo ^ |- generate %TMP%
12+ %CSCOPE_CMD% -f" %TMP% " %OPTIONS% %FILES%
13+
14+ rem replace old file
15+ if exist " %TMP% " (
16+ echo ^ |- move %TMP% to %TARGET%
17+ move /Y " %TMP% " " %TARGET% " > nul
18+ )
19+ echo ^ |- done!
You can’t perform that action at this time.
0 commit comments