1 Star 0 Fork 3

fearless/MCNP_CMake

forked from OpenMCNP/MCNP_CMake 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
regenerate_patch.sh 620 Bytes
一键复制 编辑 原始数据 按行查看 历史
Lucas John Jacobson 提交于 2018-08-03 23:26 . Get MCNP 6.2 working
#!/bin/bash
mkdir -p patch
rm -f temp
versions="514 515 516 X27 602 610 611 620"
for version in ${versions}; do
folder=MCNP${version}
if [ ${version} == "X27" ]; then patch=mcnpx27.patch
else patch=mcnp${version}.patch
fi
mv ${folder}/Source ${folder}/Source_new
mv ${folder}/Source_orig ${folder}/Source
diff -rN "--unified=0" ${folder}/Source ${folder}/Source_new > temp
mv ${folder}/Source ${folder}/Source_orig
mv ${folder}/Source_new ${folder}/Source
sed -e "s/.F\t.*/.F/" \
-e "s/.F90\t.*/.F90/" \
-e "s/.inc\t.*/.inc/" \
temp > patch/${patch}
rm -f temp
done
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/fearless_lj/MCNP_CMake.git
git@gitee.com:fearless_lj/MCNP_CMake.git
fearless_lj
MCNP_CMake
MCNP_CMake
master

搜索帮助