fix: fix compiler
fix bibliography retrieving fix suckless tools build -> exit 1 when not building from config.def.h -> exit 0 when building (not break 0)
This commit is contained in:
parent
953041c4f8
commit
4246954ac5
@ -32,7 +32,7 @@ shebangtest()
|
|||||||
}
|
}
|
||||||
|
|
||||||
texcompile() { \
|
texcompile() { \
|
||||||
bibliography="$(grep '\bibliography' "$file")"
|
bibliography="$(grep '\\bibliography' "$file")"
|
||||||
if [ -n "$bibliography" ]; then
|
if [ -n "$bibliography" ]; then
|
||||||
pdflatex --output-directory="$dir" "$base" &&
|
pdflatex --output-directory="$dir" "$base" &&
|
||||||
bibtex "$base" &&
|
bibtex "$base" &&
|
||||||
@ -47,16 +47,15 @@ texcompile() { \
|
|||||||
s_build(){
|
s_build(){
|
||||||
case "$file" in
|
case "$file" in
|
||||||
*config.def.h) sudo make clean install && rm -f config.h ;;
|
*config.def.h) sudo make clean install && rm -f config.h ;;
|
||||||
*config.h) printf "\nYou should build from config.def.h !" ;;
|
*config.h) printf "\nYou should build from config.def.h !" && exit 1 ;;
|
||||||
|
*) printf "\nI guess you lost yourself ? Please build from config.def.h !" && exit 1 ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
exit 0
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for tool in $sucklesstools; do
|
for tool in $sucklesstools; do
|
||||||
if [ "$tool" = "$dirname" ]; then
|
if [ "$tool" = "$dirname" ]; then
|
||||||
s_build
|
s_build
|
||||||
break 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user