#!/bin/bash

[[ ! -f ./src/report.tex ]] && exit 0

reportName="$(basename "$PWD")"
replaceText="s/CHANGEME/$reportName/g"

rm Makefile.dbg
mv src/report.tex src/$reportName.tex
sed -i $replaceText Makefile
