I was going through a project and I saw there are two scripts:
one runs in bash and other in csh.
Is there any way to merge both the files and run as a single script and one file only, means after merging there should not be the earlier files? This reduce the code size, and will be more user-friendly.
For example:
#!/bin/sh
setenv PROJ_ROOT $PWD
setenv PROJ_OS freebsd
setenv OS freebsd
#!/bin/csh
export ICP=`pwd`
#both /sh
if `uname -r | grep -c "10.2-RELEASE"` == 1 setenv PROJ_WITHOUT_THREAD 1