1 Star 0 Fork 0

D瓜哥/progit

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
makepdfs 781 Bytes
一键复制 编辑 原始数据 按行查看 历史
Changwoo Park 提交于 2011-11-18 15:56 . Add filtering by arguments
#!/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!"
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Ruby
1
https://gitee.com/diguage/progit.git
git@gitee.com:diguage/progit.git
diguage
progit
progit
master

搜索帮助