It is of importance, and probably was something like: #!/bin/csh
That says which shell will run the script. For instance, I would put "#!/bin/bash" because I use bash.
Anyway, maybe you should look at the "make" utility. This is what is usually used to compile. It works by creating a "Makefile" that contains the dependencies and the compilation commands to solve them.. It is better than a script, because it is able to check which sources have changed and compile only those ones.