This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This script should do the following: | |
# 1) Move scal to prim/meta | |
# 2) Move mat to the prim/meta | |
# a) if a file exists, just cat it to the end | |
# b) properly handle the #ifndefs, and the brackets and stuff | |
# 3) Move arr | |
# a) same logic as a) above | |
# b) same logic as b) above | |
# we also need to creat the meta.hpp file properly |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fldrs=("rev" "mix" "fwd" "prim") | |
for fldr in "${fldrs[@]}"; | |
do | |
echo $fldr | |
## parsing all .hpp files in rev, mix and prim | |
for f in ./stan/math/$fldr/*/*/*.hpp | |
do | |
echo $f | |
sed -i -e "s/stan\/math\/prim\/scal/stan\/math\/prim/g" $f ## remove scal |