Files
2019j-naboj/naboj/problems/newproblem.sh
2019-05-09 05:39:49 +02:00

11 lines
201 B
Bash
Executable File

cd `dirname $0`
if [ -e problem_$1.tex ]
then
echo "$1 already exists"
exit 0;
fi
cp problem_empty.tex problem_$1.tex
echo "\\addproblem{$1}{}" >> problem-sort.tex
git add problem_$1.tex
#git add -u