#!/bin/bash

#Title: resume_update
#Purpuse: Each time I update my resume I keep a backup and updated the links
#         This updates the links

Types='html pdf sxw txt'
Linker_base='JohnStile'
NewFile='JohnStile_20041228'
# Loop through extentions
for Extention in $Types; do
    if [[ -f JohnStile.${Extention} ]]; then
        echo "-- Starting with JohnStile.${Extention}"
        echo "   New File exists: JohnStile.${Extention}"
        echo "   Removing old link."
        rm -rf JohnStile.${Extention} ; 
        echo "   Creating Link to new file"
        ln -s ${NewFile}.${Extention} JohnStile.${Extention}
        echo "## Done with JohnStile.${Extention}"
    fi
done
