-#!/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