Files
AutoLTX/startup.sh
Phani Pavan K c510c102f7
All checks were successful
/ Build Container (push) Successful in 1h12m54s
implement update system, cleaned output text
2025-10-05 13:23:40 +05:30

31 lines
599 B
Bash

#! /bin/bash
if [[ -z ${1} ]]; then
echo Main file not spicified
echo Restart the container with proper arguments
exit 1
else
echo Using main latex file: "$1"
fi
if test -d /app/project; then
echo Files in current project:
ls -hl /app/project
else
echo Project folder not mounted
echo Restart the container with proper project mount
exit 1
fi
# install autoltx to project
/app/setupFiles/install.sh
# start auto compile loop
echo Starting AutoLTX...
echo
sleep 3
cd /app/project || exit 2
# Main loop
find ./* -name "*.tex" | entr -n sh -c "./compile.sh $1"