Fix relative path problem
This commit is contained in:
parent
d8657b4975
commit
8147142930
8
run.sh
8
run.sh
@ -22,22 +22,22 @@ if test "$(ls -A /tex)"; then
|
|||||||
# Build the PDF
|
# Build the PDF
|
||||||
texi2pdf ../$TARGET
|
texi2pdf ../$TARGET
|
||||||
|
|
||||||
|
cd ..
|
||||||
|
|
||||||
if [ "$?" -eq "0" ]; then
|
if [ "$?" -eq "0" ]; then
|
||||||
echo "$ECHOPREFIX Created the PDF!"
|
echo "$ECHOPREFIX Created the PDF!"
|
||||||
echo "$NULLPREFIX Here are the results:"
|
echo "$NULLPREFIX Here are the results:"
|
||||||
ls ../$BUILD/*.pdf
|
ls $BUILD/*.pdf
|
||||||
rm ./last-successful 2>/dev/null
|
rm ./last-successful 2>/dev/null
|
||||||
ln -sf $BUILD ./last-successful
|
ln -sf $BUILD ./last-successful
|
||||||
else
|
else
|
||||||
echo "$ECHOPREFIX Build failed."
|
echo "$ECHOPREFIX Build failed."
|
||||||
echo "$NULLPREFIX Have a look at the logs:"
|
echo "$NULLPREFIX Have a look at the logs:"
|
||||||
ls ../$BUILD/*.log
|
ls $BUILD/*.log
|
||||||
rm ./last-failed 2>/dev/null
|
rm ./last-failed 2>/dev/null
|
||||||
ln -sf $BUILD ./last-failed
|
ln -sf $BUILD ./last-failed
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
# Delete old symlink
|
# Delete old symlink
|
||||||
rm ./current-build 2>/dev/null
|
rm ./current-build 2>/dev/null
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user