44b612f91a
revised for 1.7.2 by jasper
23 lines
769 B
Plaintext
23 lines
769 B
Plaintext
$OpenBSD: patch-src_dirdef_cpp,v 1.2 2010/11/04 20:13:10 sthen Exp $
|
|
--- src/dirdef.cpp.orig Fri Apr 30 11:45:25 2010
|
|
+++ src/dirdef.cpp Thu Sep 16 11:35:27 2010
|
|
@@ -73,11 +73,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;
|
|
|