diff options
author | Igor Sysoev <igor@sysoev.ru> | 2004-02-24 22:34:46 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2004-02-24 22:34:46 +0300 |
commit | 71e9fa0e1170a52b6dac18b338cf5496f4bcb0de (patch) | |
tree | e0a0a513b1579ce37cf5666af4d5421f1c6afaea /auto/fmt | |
parent | 48fef6654cc90e05004648423cb5dd7c6f7770f0 (diff) |
nginx-0.0.2-2004-02-24-22:34:46 import
Diffstat (limited to 'auto/fmt')
-rw-r--r-- | auto/fmt/ptrfmt | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/auto/fmt/ptrfmt b/auto/fmt/ptrfmt index 8bbdcd10c..f913e23f9 100644 --- a/auto/fmt/ptrfmt +++ b/auto/fmt/ptrfmt @@ -48,11 +48,18 @@ if [ $ngx_fmt = no ]; then exit 1 fi -fmtX="%0`expr 2 \* ${ngx_ptr_bytes}`" + +if [ $ngx_ptr_bytes = 4 ]; then + fmtX="%0`expr 2 \* $ngx_ptr_bytes`" +else + fmtX="%$ngx_ptr_bytes' +fi + ngx_fmt=`echo $ngx_fmt | sed -e "s/d/X/" -e "s/^%/$fmtX/"` echo "$comma \"${ngx_fmt}\" used" + cat << END >> $NGX_AUTO_CONFIG_H #ifndef $ngx_fmt_name |