Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
eclipse
GitHub Repository: eclipse/sumo
Path: blob/main/tools/devel/rebuild_cscope.sh
169674 views
1
#!/bin/bash
2
# Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
3
# Copyright (C) 2008-2022 German Aerospace Center (DLR) and others.
4
# This program and the accompanying materials are made available under the
5
# terms of the Eclipse Public License 2.0 which is available at
6
# https://www.eclipse.org/legal/epl-2.0/
7
# This Source Code may also be made available under the following Secondary
8
# Licenses when the conditions for such availability set forth in the Eclipse
9
# Public License 2.0 are satisfied: GNU General Public License, version 2
10
# or later which is available at
11
# https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
12
# SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
13
14
# @file rebuild_cscope.sh
15
# @author Jakob Erdmann
16
# @date 2015
17
# script for building ctags/cscope index files
18
# to be run from the root directory
19
20
#export FOXDIR=~/programs/fox-1.6.43
21
export CSTMP=~/tmp/cscope.files
22
export CSOUT=cscope.out
23
export TAGSOUT=tags
24
25
cd src
26
rm $CSTMP
27
rm $CSOUT
28
rm $TAGSOUT
29
#find $FOXDIR/src -name '*.cpp' > $CSTMP
30
#find $FOXDIR/include -name '*.h' >> $CSTMP
31
find -name '*.cpp' >> $CSTMP
32
find -name '*.h' >> $CSTMP
33
#find ../unittest -name '*.cpp' >> $CSTMP
34
#find ../unittest -name '*.h' >> $CSTMP
35
cscope -i $CSTMP -b -f $CSOUT
36
ctags -L $CSTMP -f $TAGSOUT
37
38