X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=cscope.make;h=3349d6d8a71c4f16e47e78d27707820dd0b5e292;hp=983992d2b0eaf52aaa15f2bdcb67876a4af40568;hb=c78934a448d0126709fccec3d5a636b3baa87da4;hpb=d4667f48eabde9e163ad98c72bfc6a8d61e375dc diff --git a/cscope.make b/cscope.make index 983992d..3349d6d 100755 --- a/cscope.make +++ b/cscope.make @@ -1,12 +1,14 @@ -#!/bin/bash +#!/bin/sh -current=`pwd` +current="$PWD" cd / find "$current" \ --iname "*.cc" -o \ --iname "*.h" |sed '/ / s/^\(.*\)/"\1"/' >"$current/cscope.files" +-iname "*.c" -o \ +-iname "*.h" -o \ +-iname "*.cc" -o \ +-iname "*.hh" | sed '/ / s/^\(.*\)/"\1"/' >"$current/cscope.files" cd "$current" -#cscope -b -q +cscope -b -q