|
|
|
|
|
|
|
```bash
|
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# Script to create the cscope files for SWIFT
|
|
|
|
# Update the 4 variables below to match where your SWIFT repo is and
|
|
|
|
# where you want to put the CSCOPE files.
|
|
|
|
# Then do (on the command line):
|
|
|
|
# ./cscope.sh
|
|
|
|
# cscope
|
|
|
|
|
|
|
|
#VARS
|
|
|
|
ROOT_DIR=/cosma/home/dp004/dc-rega4
|
|
|
|
SWIFT_DIR=$ROOT_DIR/data/Builds/SWIFT/swiftsim
|
|
|
|
CSCOPE_DIR=$ROOT_DIR/data/Builds/SWIFT/CSCOPE
|
|
|
|
OUTPUT_FILE=$CSCOPE_DIR/cscope.files
|
|
|
|
|
|
|
|
cd $ROOT_DIR
|
|
|
|
find $SWIFT_DIR -name "*.c" -prune -o -name "*.h" > $OUTPUT_FILE
|
|
|
|
cd $CSCOPE_DIR
|
|
|
|
cscope -b
|
|
|
|
|
|
|
|
exit
|
|
|
|
``` |
|
|
|
\ No newline at end of file |