openbsd-ports/devel/doxygen/patches/patch-src_dirdef_cpp
2012-12-13 14:20:14 +00:00

23 lines
769 B
Plaintext

$OpenBSD: patch-src_dirdef_cpp,v 1.3 2012/12/13 14:20:14 sthen Exp $
--- src/dirdef.cpp.orig Sat Jul 28 16:56:02 2012
+++ src/dirdef.cpp Wed Dec 12 23:37:05 2012
@@ -79,11 +79,16 @@ void DirDef::addFile(FileDef *fd)
static QCString encodeDirName(const QCString &anchor)
{
QCString result;
-
+ char *name, *prefix;
// convert to md5 hash
uchar md5_sig[16];
QCString sigStr(33);
- MD5Buffer((const unsigned char *)anchor.data(),anchor.length(),md5_sig);
+ name = (char*)anchor.data();
+ prefix = getenv("DOXYGEN_ENCODE_PATH_STRIP");
+ if(prefix != NULL)
+ if (strstr(name, prefix) == name)
+ name += strlen(prefix);
+ MD5Buffer((const unsigned char*)name,strlen(name),md5_sig);
MD5SigToString(md5_sig,sigStr.data(),33);
return sigStr;