The use of 'head -n1' and 'tail -n1' is not portable. These should be 'head -1' and 'tail -1' respectively.
On solaris, this output:
gmake[1]: Leaving directory `/net/thorbardin/export/home/raistlin/SVN/icculus/quake3-Solaris/trunk'
usage: tail [+/-[n][lbc][f]] [file]
tail [+/-[n][l][r|f]] [file]
gmake[1]: Entering directory `/net/thorbardin/export/home/raistlin/SVN/icculus/quake3-Solaris/trunk'
Created attachment 1748[details]
alternative patch
I'd rather propose this patch. It defines VERSION in the Makefile and avoids the shell hacks completely. That also allows me to define a proper version for the rpm packages.
I'm fine with your patch but it kinda defeats the purpose of the Makefile routine that caused me to file this very bug. I am fine with both ideas but I don't know which would be preferable..
Created attachment 1746 [details] Simple patch to the Makefile.
Created attachment 1748 [details] alternative patch I'd rather propose this patch. It defines VERSION in the Makefile and avoids the shell hacks completely. That also allows me to define a proper version for the rpm packages.