@@ -195,24 +195,28 @@ if get_option('install_examples')
195
195
endif
196
196
197
197
# install environment setup files
198
- configure_file (
199
- input : ' meson' / ' this_iguana.sh.in' ,
200
- output : ' this_iguana.sh' ,
201
- install : get_option (' z_install_envfile' ),
202
- install_dir : get_option (' bindir' ),
203
- configuration : {
204
- ' ld_path' : host_machine .system() != ' darwin' ? ' LD_LIBRARY_PATH' : ' DYLD_LIBRARY_PATH' ,
205
- ' python' : get_option (' bind_python' ) ? ' true' : ' false' ,
206
- ' libdir' : get_option (' libdir' ),
207
- },
208
- )
209
- configure_file (
210
- input : ' meson' / ' this_iguana.tcsh.in' ,
211
- output : ' this_iguana.tcsh' ,
212
- install : get_option (' z_install_envfile' ),
213
- install_dir : get_option (' bindir' ),
214
- configuration : {},
215
- )
198
+ if get_option (' z_install_envfile' )
199
+ configure_file (
200
+ input : ' meson' / ' this_iguana.sh.in' ,
201
+ output : ' this_iguana.sh' ,
202
+ install : true ,
203
+ install_dir : get_option (' bindir' ),
204
+ configuration : {
205
+ ' ld_path' : host_machine .system() != ' darwin' ? ' LD_LIBRARY_PATH' : ' DYLD_LIBRARY_PATH' ,
206
+ ' python' : get_option (' bind_python' ) ? ' true' : ' false' ,
207
+ ' libdir' : get_option (' libdir' ),
208
+ },
209
+ )
210
+ foreach shell : [' csh' , ' tcsh' ]
211
+ configure_file (
212
+ input : ' meson' / ' this_iguana.csh.in' ,
213
+ output : ' this_iguana.' + shell,
214
+ install : true ,
215
+ install_dir : get_option (' bindir' ),
216
+ configuration : {' shell' : shell},
217
+ )
218
+ endforeach
219
+ endif
216
220
217
221
# generate modulefile
218
222
if (get_option (' z_generate_modulefile' ))
0 commit comments