--On Monday, March 31, 2003 10:09 AM +0200 Graham Leggett <[EMAIL PROTECTED]>
wrote:
The following code will pull the version number out of ap_release.h:
cat include/ap_release.h | grep "define AP_SERVER_MAJORVERSION" | cut -d' '
-f3 | tr -d '\"'
Is it portable?
FWIW, I'd use:
grep "^#define AP
--On Sunday, March 30, 2003 11:27 PM +0200 Graham Leggett <[EMAIL PROTECTED]>
wrote:
I will take the code out of buildconf until it can be fixed. I was not aware
of these portability issues, having used the same techniques used in the
spec file (which in hindsight is obviously redhat specific).
K
--On Sunday, March 30, 2003 7:02 PM + [EMAIL PROTECTED] wrote:
Backport of the RPM build scripts to v2.0
Obtained from: Joe Orton <[EMAIL PROTECTED]>
This generates failures on Solaris (which does not have cpp). It also looks
like your grep usage is relying upon some extended grep semanti