代码拉取完成,页面将自动刷新
#!/bin/bash
baseDir=`dirname $0`
outputDir=${baseDir}/pdf
exclude=('figures' 'figures-dia' 'figures-source' 'latex' 'makepdfs' 'pdf' 'README')
dirContent=`ls $baseDir`
argString=""
echo $i;
for dir in $dirContent; do
if [ -n $dir ]; then
isLang=1
for i in ${exclude[@]}; do
if [ $i == $dir ]; then
isLang=0
fi
done
if [ $isLang -eq 1 ]; then
if [ "$1" = "" ]; then
argString="${argString} ${dir}"
else
for i in ${@}; do
if [ $i = $dir ]; then
argString="${argString} ${dir}"
fi
done
fi
fi
fi
done
echo "Will generate pdf for the following languages:"
echo " "$argString
mkdir -p $outputDir
echo
echo "The generation process will start now."
time ${baseDir}/latex/makepdf $argString
echo
echo
echo "Done!"
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。