diff --git a/Utilities/Scripts/find_bash_orphans.sh b/Utilities/Scripts/find_bash_orphans.sh deleted file mode 100755 index 18d21cb137f..00000000000 --- a/Utilities/Scripts/find_bash_orphans.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash -script=$1 - -# This script compiles all LaTeX guides, then checks for "orphaned" files. -# These are files that are not referenced in the LaTeX guides. - -CURDIR=`pwd` -SVNROOT=`pwd`/../../.. -cd $SVNROOT -SVNROOT=`pwd` - -cd $SVNROOT/fds -FDSROOT=`pwd` - -cd $SVNROOT/bot -BOTROOT=`pwd` - -cd $SVNROOT/smv -SMVROOT=`pwd` - -grep $script $FDSROOT/Build/*.html $FDSROOT/Build/*/*.sh $FDSROOT/Manuals/*/*.sh $FDSROOT/Utilities/Scripts/*.sh $FDSROOT/Verification/scripts/*.sh -grep $script $BOTROOT/Bundle/fds/scripts/*.sh $BOTROOT/Bundle/smv/scripts/*.sh $BOTROOT/Firebot/*.sh $BOTROOT/Smokebot/*.sh $BOTROOT/Scripts/*.sh -grep $script $SMVROOT/Build/build*.html $SMVROOT/scripts/*.sh $SMVROOT/Build/*/*.sh $SMVROOT/Utilities/Scripts/*.sh $SMVROOT/Verification/scripts/*.sh diff --git a/Utilities/Scripts/find_bat_orphans.sh b/Utilities/Scripts/find_bat_orphans.sh deleted file mode 100755 index 61de1e98b68..00000000000 --- a/Utilities/Scripts/find_bat_orphans.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash -script=$1 - -CURDIR=`pwd` -SVNROOT=`pwd`/../../.. -cd $SVNROOT -SVNROOT=`pwd` - -cd $SVNROOT/fds -FDSROOT=`pwd` - -cd $SVNROOT/smv -SMVROOT=`pwd` - -echo looking for $script in FDS repo -grep $script $FDSROOT/Build/*.html $FDSROOT/Utilities/*.html $FDSROOT/Build/*/*.bat $FDSROOT/Build/Scripts/*.bat $FDSROOT/bot/Firebot/*.bat $FDSROOT/Utilities/Scripts/*.bat $FDSROOT/Verification/scripts/*.bat - -echo looking for $script in SMV repo -grep $script $SMVROOT/Build/*.html $SMVROOT/Build/*/*.bat $SMVROOT/Build/Scripts/*.bat $SMVROOT/bot/Firebot/*.bat $SMVROOT/Utilities/Scripts/*.bat $SMVROOT/Verification/scripts/*.bat diff --git a/Utilities/Scripts/find_latex_orphans.sh b/Utilities/Scripts/find_latex_orphans.sh deleted file mode 100755 index 7d3d08bd975..00000000000 --- a/Utilities/Scripts/find_latex_orphans.sh +++ /dev/null @@ -1,155 +0,0 @@ -#!/bin/bash - -# This script compiles all LaTeX guides, then checks for "orphaned" files. -# These are files that are not referenced in the LaTeX guides. - -SVNROOT=`pwd`/../.. - -cd $SVNROOT/Manuals - -# ============================================================================= -# = Make all guides with the -recorder option to output external dependencies = -# ============================================================================= - -cd FDS_Config_Management_Plan -echo 'Building FDS Config Management Plan' -output=`./make_guide.sh` -pdflatex -interaction nonstopmode -recorder FDS_Config_Management_Plan &> /dev/null -if [[ $output != *successfully* ]]; -then - echo 'Error: Problem compiling FDS Config Management Plan' - echo $output -fi -cd .. - -cd FDS_Technical_Reference_Guide -echo 'Building FDS Technical Reference Guide' -output=`./make_guide.sh` -pdflatex -interaction nonstopmode -recorder FDS_Technical_Reference_Guide &> /dev/null -if [[ $output != *successfully* ]]; -then - echo 'Error: Problem compiling FDS Technical Reference Guide' - echo $output -fi -cd .. - -cd FDS_User_Guide -echo 'Building FDS User Guide' -output=`./make_guide.sh` -pdflatex -interaction nonstopmode -recorder FDS_User_Guide &> /dev/null -if [[ $output != *successfully* ]]; -then - echo 'Error: Problem compiling FDS User Guide' - echo $output -fi -cd .. - -cd FDS_Validation_Guide -echo 'Building FDS Validation Guide' -output=`./make_guide.sh` -pdflatex -interaction nonstopmode -recorder FDS_Validation_Guide &> /dev/null -if [[ $output != *successfully* ]]; -then - echo 'Error: Problem compiling FDS Validation Guide' - echo $output -fi -cd .. - -cd FDS_Verification_Guide -echo 'Building FDS Verification Guide' -output=`./make_guide.sh` -pdflatex -interaction nonstopmode -recorder FDS_Verification_Guide &> /dev/null -if [[ $output != *successfully* ]]; -then - echo 'Error: Problem compiling FDS Verification Guide' - echo $output -fi -cd .. - -cd SMV_Technical_Reference_Guide -echo 'Building SMV Technical Reference Guide' -output=`./make_guide.sh` -pdflatex -interaction nonstopmode -recorder SMV_Technical_Reference_Guide &> /dev/null -if [[ $output != *successfully* ]]; -then - echo 'Error: Problem compiling SMV Technical Reference Guide' - echo $output -fi -cd .. - -cd SMV_User_Guide -echo 'Building SMV User Guide' -output=`./make_guide.sh` -pdflatex -interaction nonstopmode -recorder SMV_User_Guide &> /dev/null -if [[ $output != *successfully* ]]; -then - echo 'Error: Problem compiling SMV User Guide' - echo $output -fi -cd .. - -cd SMV_Verification_Guide -echo 'Building SMV Verification Guide' -output=`./make_guide.sh` -pdflatex -interaction nonstopmode -recorder SMV_Verification_Guide &> /dev/null -if [[ $output != *successfully* ]]; -then - echo 'Error: Problem compiling SMV Verification Guide' - echo $output -fi -cd .. - -cd $SVNROOT/Manuals - -# =========================== -# = Compile lists of images = -# =========================== - -# Compile list of png and pdf images referenced in LaTeX documents -REFERENCED_FILES=`grep -h INPUT */*.fls | grep -E 'pdf|png|eps|jpg' | cut -f2 -d' ' | xargs -n1 basename | sed 's/\..\{3\}$//'` - -FIGDIR=/FIGURES -GRAPHICS_FILES_F=`find FDS_Config_Management_Plan$FIGDIR FDS_Technical_Reference_Guide$FIGDIR FDS_User_Guide$FIGDIR FDS_Validation_Guide$FIGDIR FDS_Verification_Guide$FIGDIR SMV_Technical_Reference_Guide$FIGDIR SMV_User_Guide$FIGDIR SMV_Verification_Guide$FIGDIR -name *.png -o -name *.pdf -o -name *.eps -o -name *.jpg | xargs -n1 basename | sed 's/\..\{3\}$//'` - -FIGDIR=/SCRIPT_FIGURES -GRAPHICS_FILES_SF=`find FDS_Config_Management_Plan$FIGDIR FDS_Technical_Reference_Guide$FIGDIR FDS_User_Guide$FIGDIR FDS_Validation_Guide$FIGDIR FDS_Verification_Guide$FIGDIR SMV_Technical_Reference_Guide$FIGDIR SMV_User_Guide$FIGDIR SMV_Verification_Guide$FIGDIR -name *.png -o -name *.pdf -o -name *.eps -o -name *.jpg | xargs -n1 basename | sed 's/\..\{3\}$//'` - -# gf: have a loop outputting orphans for each GRPHICS_FILESxxx variable above - -# ================= -# = Compare lists = -# ================= - -# See if all graphics are referenced in a LaTeX document -# If not, print "Unused graphics file (with filename)" -for i in $GRAPHICS_FILES_SF -do - if [[ $REFERENCED_FILES == *"$i"* ]]; - then - : - else - if [[ $i == *Guide* ]] || \ - [[ $i == *Plan* ]] - then - : - else - echo "Unused graphics file in SCRIPT_FIGURES: $i" - fi - fi -done - -for i in $GRAPHICS_FILES_F -do - if [[ $REFERENCED_FILES == *"$i"* ]]; - then - : - else - if [[ $i == *Guide* ]] || \ - [[ $i == *Plan* ]] - then - : - else - echo "Unused graphics file in FIGURES: $i" - fi - fi -done diff --git a/Utilities/Scripts/find_orphan.sh b/Utilities/Scripts/find_orphan.sh new file mode 100755 index 00000000000..7f570786d57 --- /dev/null +++ b/Utilities/Scripts/find_orphan.sh @@ -0,0 +1,31 @@ +#!/bin/bash +file=$1 +type=$2 + +CURDIR=`pwd` +cd ../../.. +GITROOT=`pwd` +BOTREPO=$GITROOT/bot +FDSREPO=$GITROOT/fds +SMVREPO=$GITROOT/smv + +echo "************************************************" +echo "*** looking for $file in $BOTREPO" +echo "************************************************" +cd $BOTREPO +grep -r $file --include=*sh +grep -r $file --include=*bat + +cd $FDSREPO +echo "************************************************" +echo "*** looking for $file in $FDSREPO" +echo "************************************************" +grep -r $file --include=*sh +grep -r $file --include=*bat + +cd $SMVREPO +echo "************************************************" +echo "*** looking for $file in $SMVREPO" +echo "************************************************" +grep -r $file --include=*sh +grep -r $file --include=*bat diff --git a/Utilities/Scripts/make_validation_caselist.sh b/Utilities/Scripts/make_validation_caselist.sh deleted file mode 100755 index b49f47464d8..00000000000 --- a/Utilities/Scripts/make_validation_caselist.sh +++ /dev/null @@ -1,58 +0,0 @@ -#!/bin/bash - -# This script generates a list of validation test cases to be run -MAKEGITENTRY(){ -DIR=$1 -gitrevisions=/tmp/gitrevisions.$$ - -cat $FIREMODELS_ROOT/out/$DIR/*git.txt 2> /dev/null | sort -u > $gitrevisions -gitrev=`head -1 $gitrevisions` -if [ "$gitrev" != "" ] ; then - gitrevshort=`echo $gitrev | awk -F - '{print $3}' | sed 's/^.\{1\}//'` - gitdate=`git show -s --format=%aD $gitrevshort 2> /dev/null | head -1 | awk '{print $3,$2",",$4}'` - if [ "$gitdate" == "" ]; then - gitdate="undefined" - gitdate2=2000000000 - else - gitdate2=`git show -s --format=%at $gitrevshort | head -1 | awk '{print $1}'` - fi - echo "$DIR ! $gitdate2 ! $gitdate ! $gitrev " -fi -rm $gitrevisions -} - - -CURRENT_DIR=`pwd` -SCRIPTDIR=`dirname "$(readlink -f "$0")"` -cd $SCRIPTDIR/../../.. -FIREMODELS_ROOT=`pwd` -export FIREMODELS_ROOT -cd $CURRENT_DIR - -while getopts 'r:' OPTION -do -case $OPTION in - r) - FIREMODELS_ROOT="$OPTARG" - ;; -esac -done -shift $(($OPTIND-1)) - -cd $FIREMODELS_ROOT/fds/Utilities/Scripts - -makelist=$FIREMODELS_ROOT/fds/Validation/Process_All_Output.sh -CASELIST=/tmp/temp.out.$$ -TABLE_ENTRIES=/tmp/temp2.out.$$ -grep PROCESS $makelist | awk 'BEGIN { FS = " " } ; { print $2 }' | awk '{if(NR>1)print}'> $CASELIST -while read p; do - MAKEGITENTRY $p >> $TABLE_ENTRIES -done <$CASELIST - -cat $TABLE_ENTRIES | sort -t"!" -n -k2,2 | awk -F "!" '{ print $1 "!" $2 "!" $3}' - -rm $CASELIST $TABLE_ENTRIES - - -cd $CURRENT_DIR -