Skip to content

Commit 0939d3f

Browse files
committed
simple update commands
1 parent 45878a7 commit 0939d3f

2 files changed

Lines changed: 21 additions & 2 deletions

File tree

vimfiles/tools/shell/bash/update-cscope.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
# create cscope.out
4-
echo "Creating cscope.out..."
4+
echo "Creating Cscope..."
55

66
# choose cscope path first
77
if [ -f "${DEST}/files" ]; then
@@ -12,7 +12,7 @@ fi
1212

1313
# process tags by langugage
1414
echo " |- generate ${TMP}"
15-
${CSCOPE_CMD} ${OPTIONS} "${FILES}"
15+
${CSCOPE_CMD} -f "${TMP}" ${OPTIONS} "${FILES}"
1616

1717
# replace old file
1818
if [ -f "${TMP}" ]; then
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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!

0 commit comments

Comments
 (0)