#!/bin/bash PWD=`pwd` DST=../linux-3.2.0 SRC=../`basename $PWD` cd $DST # rm -f cscope.* tags if [ -s tags ] ; then echo "ctags already exist, exit now..." exit 0; fi ln -s $SRC/tags for f in $SRC/cscope* do ln -s $f done