File tree 1 file changed +4
-5
lines changed
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -13,10 +13,10 @@ $ sudo apt install cscope
13
13
그 다음에는 ` mkcscope.sh ` 이라는 이름의 shell script를 만들고 아래 내용을 복사해줍시다.
14
14
``` bash
15
15
#! /bin/sh
16
- rm -rf cscope.files cscope.files
16
+ rm -rf cscope.files cscope.out
17
17
18
18
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
20
20
```
21
21
22
22
만들고 난 다음 ` mkcscope.sh ` 의 permission을 변경해주고 ` /usr/bin ` 폴더로 파일을 옵깁니다.
@@ -46,8 +46,7 @@ cscope에 등록하고자 하는 코드의 디렉토리로 이통해서 `mkcscop
46
46
$ cd /home/hojun/git/linux
47
47
$ mkcscope.sh
48
48
```
49
- ` mkcscope ` 를 실행하면 데이터가 빌드되고 빌드가 다 끝나면 값을 입력받으려 합니다.
50
- 이 때는 그냥 ` Ctrl + d ` 를 눌러서 종료하면 됩니다.
49
+ ` mkcscope ` 를 실행하면 데이터가 빌드됩니다.
51
50
52
51
실행 후에는 ` cscope.files ` 와 ` cscope.out ` 두 가지 파일이 생성됩니다.
53
52
@@ -80,4 +79,4 @@ cscope의 질의종류
80
79
```
81
80
라고 입력하면 명령에 해당되는 여러 코드라인을 보여주고 그 중 하나를 선택해 해당 코드라인으로 이동할 수 있습니다.
82
81
83
- 참고: https://hackereyes.tistory.com/entry/펌-ctags-cscope-설치-및-사용
82
+ 참고: https://hackereyes.tistory.com/entry/펌-ctags-cscope-설치-및-사용
You can’t perform that action at this time.
0 commit comments