@echo off
echo bl.btm -- process brokenlinks using jet
pushd
set confirm=
cdd E:\env\bl
java.exe com.mindprod.brokenlinks.brokenlinks
copy include.html E:\mindprod\jgloss\include\brokenlinks.htmlfrag
cdd E:\mindprod\jgloss
call one brokenlinks.html
cdd E:\env\bl
set avoid=anrdoezrs barnesandnoble clickbank condomblogs esellerate kobo linksynergy linksynergy nytimes phone qksrv Victoria webring
withouti.exe %avoid - permanentredirects.csv > safepermanent.csv
csvalign safepermanent.csv
vs safepermanent.csv
echo.
echo apply safe permanent redirects?
confirm.exe
if ERRORLEVEL 1 goto bypass1
csvreplaceurls.exe safepermanent.csv
echo patching hassle.csv
csvpatch.exe E:\com\mindprod\submitter\hassle.csv safepermanent.csv 1 2
echo patching nohassle.csv
csvpatch.exe E:\com\mindprod\submitter\nohassle.csv safepermanent.csv 1 2
echo patching candidates.csv
csvpatch.exe E:\com\mindprod\submitter\candidates.csv safepermanent.csv 1 2
echo patching phone.csv
csvpatch.exe E:\com\mindprod\phone\phone.csv safepermanent.csv 1
echo patching air.csv
csvpatch.exe E:\com\mindprod\repair\air.csv safepermanent.csv 4
pause
:bypass1
set suspend=error suspend 404 shawcaassist
extracti.exe %suspend% - permanentRedirects.csv > suspended.csv
extracti.exe %suspend% - temporaryRedirects.csv >> suspended.csv
csvalign suspended.csv
vs.exe E:\com\mindprod\submitter\dead.csv E:\com\mindprod\submitter\hassle.csv suspended.csv
Echo. You will need to apply the suspended.csv changes manually as if they were 404 broken links.
echo.
pause
withouti.exe %avoid - temporaryRedirects.csv > safetemporary.csv
csvalign safetemporary.csv
vs.exe safetemporary.csv
echo.
echo apply safe temporary redirects?
confirm.exe
if ERRORLEVEL 1 goto bypass2
echo it is unusual to apply temporaries. Are you sure?
confirm.exe
if ERRORLEVEL 1 goto bypass2
csvreplaceurls.exe safetemporary.csv
echo patching hassle.csv
csvpatch.exe E:\com\mindprod\submitter\hassle.csv safetemporary.csv 1 2
echo patching nohassle.csv
csvpatch.exe E:\com\mindprod\submitter\nohassle.csv safetemporary.csv 1 2
echo patching candidates.csv
csvpatch.exe E:\com\mindprod\submitter\candidates.csv safetemporary.csv 1 2
echo patching phone.csv
csvpatch.exe E:\com\mindprod\phone\phone.csv safetemporary.csv 1
echo patching air.csv
csvpatch.exe E:\com\mindprod\repair\air.csv safetemporary.csv 4
pause
:bypass2
extracti.exe phone - permanentRedirects.csv > phoneredirects.csv
csvalign phoneredirects.csv
vs phoneredirects.csv
echo.
echo apply phone redirects?
confirm.exe
if ERRORLEVEL 1 goto bypass3
echo it is unusual to apply phone redirects. Are you sure?
confirm.exe
if ERRORLEVEL 1 goto bypass3
echo patching phone.csv
csvpatch.exe E:\com\mindprod\phone\phone.csv phoneredirects.csv 1
:bypass3
set confirm=n
echo tidying submitter csvs
call E:\com\mindprod\submitter\tidy.btm
echo tidy htmlmacros csvs
call E:\com\mindprod\htmlmacros\tidy.btm
echo tidying air.csv
call E:\com\mindprod\repair\tidyair.btm
echo mark acronyms
call E:\com\mindprod\acronym\markacronyms.btm
echo collect birthdays
call E:\com\mindprod\repair\preparebirths.btm
echo refresh embellishments.
call E:\com\mindprod\htmlmacros\validateembellishments.btm
echo fixing css classes
call E:\com\mindprod\repair\assigncssclasseses.btm
echo tidy books, dvds, electronics
call E:\com\mindprod\stores\tidy.btm
cdd E:\env\bl
del xenupage.csv
set confirm=
popd
echo d o n e