#!/bin/bash

ROOT=/home/shquier/easyconf.net/easychair

echo "==============================================================="
echo " Enterprise Pack 2412"
echo " WorkflowDictionary Adoption Audit"
echo "==============================================================="
echo

FILES="

app/controllers/AdminSubmissionWorkflowController.php
app/services/SubmissionWorkflowService.php
app/services/WorkflowDecisionService.php
app/controllers/AdminBusinessToolsController.php
app/controllers/ReviewerDashboardController.php
app/controllers/AuthorSubmissionController.php
app/controllers/AdminIssueController.php
app/controllers/AdminProductionController.php
"

for f in $FILES
do

FULL="$ROOT/$f"

echo
echo "=================================================="
echo "$f"
echo "=================================================="

echo
echo "--- submitted"
grep -n "'submitted'" "$FULL"

echo
echo "--- screening"
grep -n "'screening'" "$FULL"

echo
echo "--- under_review"
grep -n "'under_review'" "$FULL"

echo
echo "--- revision_required"
grep -n "'revision_required'" "$FULL"

echo
echo "--- accepted"
grep -n "'accepted'" "$FULL"

echo
echo "--- rejected"
grep -n "'rejected'" "$FULL"

echo
echo "--- production"
grep -n "'production'" "$FULL"

echo
echo "--- published"
grep -n "'published'" "$FULL"

echo
echo "--- submission"
grep -n "'submission'" "$FULL"

echo
echo "--- review"
grep -n "'review'" "$FULL"

echo
echo "--- revision"
grep -n "'revision'" "$FULL"

echo
echo "--- decision"
grep -n "'decision'" "$FULL"

echo
echo "--- issue"
grep -n "'issue'" "$FULL"

done

