Skip to content

Commit fc0ee50

Browse files
authored
Update cscope.md
Fix wrong info
1 parent 2f952e6 commit fc0ee50

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Diff for: Linux/cscope.md

+4-5
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ $ sudo apt install cscope
1313
그 다음에는 `mkcscope.sh`이라는 이름의 shell script를 만들고 아래 내용을 복사해줍시다.
1414
```bash
1515
#!/bin/sh
16-
rm -rf cscope.files cscope.files
16+
rm -rf cscope.files cscope.out
1717

1818
find `pwd` \( -name '*.c' -o -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.s' -o -name '*.S' \) -print > cscope.files
19-
cscope -i cscope.files
19+
cscope -i cscope.files -b
2020
```
2121

2222
만들고 난 다음 `mkcscope.sh`의 permission을 변경해주고 `/usr/bin` 폴더로 파일을 옵깁니다.
@@ -46,8 +46,7 @@ cscope에 등록하고자 하는 코드의 디렉토리로 이통해서 `mkcscop
4646
$ cd /home/hojun/git/linux
4747
$ mkcscope.sh
4848
```
49-
`mkcscope`를 실행하면 데이터가 빌드되고 빌드가 다 끝나면 값을 입력받으려 합니다.
50-
이 때는 그냥 `Ctrl + d`를 눌러서 종료하면 됩니다.
49+
`mkcscope`를 실행하면 데이터가 빌드됩니다.
5150

5251
실행 후에는 `cscope.files``cscope.out` 두 가지 파일이 생성됩니다.
5352

@@ -80,4 +79,4 @@ cscope의 질의종류
8079
```
8180
라고 입력하면 명령에 해당되는 여러 코드라인을 보여주고 그 중 하나를 선택해 해당 코드라인으로 이동할 수 있습니다.
8281

83-
참고: https://hackereyes.tistory.com/entry/펌-ctags-cscope-설치-및-사용
82+
참고: https://hackereyes.tistory.com/entry/펌-ctags-cscope-설치-및-사용

0 commit comments

Comments
 (0)