Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 143371 Details for
Bug 209760
mail-client/mutt-1.5.16 build failure
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
hcachever.sh
hcachever.sh (text/plain), 1.56 KB, created by
Jochen Schlick
on 2008-02-12 22:36:55 UTC
(
hide
)
Description:
hcachever.sh
Filename:
MIME Type:
Creator:
Jochen Schlick
Created:
2008-02-12 22:36:55 UTC
Size:
1.56 KB
patch
obsolete
>#!/bin/sh > >BASEVERSION=1 > >MD5=md5 >if test "$MD5" = "openssl" >then > MD5="openssl md5 -hex" >elif test "$MD5" = "none" >then > echo "ERROR: no MD5 tool found" > exit 1 >fi > >cleanstruct () { > echo "$1" | sed -e 's/} *//' -e 's/;$//' >} > >cleanbody () { > echo "$1" | sed -e 's/{ *//' >} > >getstruct () { > STRUCT="" > BODY='' > inbody=0 > case "$1" in > *'{') inbody=1 ;; > *';') return ;; > esac > > while read line > do > if test $inbody -eq 0 > then > case "$line" in > '{'*) inbody=1 ;; > *';') return ;; > esac > fi > > case "$line" in > '} '*) > STRUCT=`cleanstruct "$line"` > break > ;; > '}') > read line > STRUCT=`cleanstruct "$line"` > break > ;; > '#'*) continue ;; > *) > if test $inbody -ne 0 > then > BODY="$BODY $line" > fi > ;; > esac > done > > case $STRUCT in > ADDRESS|LIST|BUFFER|PARAMETER|BODY|ENVELOPE) > BODY=`cleanbody "$BODY"` > echo "$STRUCT: $BODY" > ;; > esac > return >} > >DEST="$1" >TMPD="$DEST.tmp" > >TEXT="$BASEVERSION" > >echo "/* base version: $BASEVERSION" > $TMPD >while read line >do > case "$line" in > 'typedef struct'*) > STRUCT=`getstruct "$line"` > if test -n "$STRUCT" > then > NAME=`echo $STRUCT | cut -d: -f1` > BODY=`echo $STRUCT | cut -d' ' -f2-` > echo " * $NAME:" $BODY >> $TMPD > TEXT="$TEXT $NAME {$BODY}" > fi > ;; > esac >done >echo " */" >> $TMPD > >MD5TEXT=`echo "$TEXT" | $MD5` >echo "#define HCACHEVER 0x"`echo $MD5TEXT | cut -c-8` >> $TMPD > ># TODO: validate we have all structs > >mv $TMPD $DEST
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 209760
:
143260
|
143366
|
143369
| 143371