hpc4cmb / toast

Time Ordered Astrophysics Scalable Tools
Other
44 stars 39 forks source link

fix git checkout toast3 on Windows #719

Closed ickc closed 11 months ago

ickc commented 11 months ago

Currently,

error: invalid path 'src/toast/aux/benchmarks/stats.json'

error: invalid path 'src/toast/aux/weather/LMT.h5'

error: invalid path 'src/toast/aux/weather/atacama.h5'

error: invalid path 'src/toast/aux/weather/convert.py'

error: invalid path 'src/toast/aux/weather/south_pole.h5'

Because AUX is reserved in Windows.

This PR propose replacing aux by _aux using the following code:

FROM=aux
TO=_aux
sed -i "s/$FROM/$TO/" src/toast/CMakeLists.txt
find src/toast -name '*.py' -exec sed -i "s/\"$FROM\"/\"$TO\"/" {} +
git mv "./src/toast/$FROM" "./src/toast/$TO"
tskisner commented 11 months ago

Thanks @ickc , looks good.