Import Geant4 10.0.0 source tree
This commit is contained in:
+26
@@ -0,0 +1,26 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Usage:
|
||||
# check_separator.sh
|
||||
|
||||
#set -x
|
||||
|
||||
CURDIR=`pwd`
|
||||
|
||||
#The correct separator with 80 characters
|
||||
#SEPARATOR="//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......"
|
||||
|
||||
#Still tolerated separator with 78 characters
|
||||
SEPARATOR="//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...."
|
||||
|
||||
for SOURCE in `ls src/*.cc`
|
||||
do
|
||||
LINES=`cat $SOURCE | grep $SEPARATOR | wc -l `
|
||||
RESULT=`echo "$LINES > 0" | bc`
|
||||
if [ $RESULT -ne 1 ];
|
||||
then
|
||||
echo "NO SEPARATOR found in $SOURCE"
|
||||
fi
|
||||
done
|
||||
|
||||
cd $CURDIR
|
||||
Reference in New Issue
Block a user