(cd release/${VERSION}; \
tar -czf ../../urmoms-${VERSION}.tar.gz .)
-${OBJ}: config.mk ${HDR}
+${OBJ}: config.h config.mk ${HDR}
+
+config.h:
+ @echo creating $@ from config.def.h
+ @cp config.def.h $@
urmoms: urmoms.o
${CC} -o $@ urmoms.o ${LDFLAGS}
#include <string.h>
#include <unistd.h>
+#include "config.h"
#include "git2.h"
struct commitinfo {
fputs("</td><td>", fp);
if (ci->summary) {
fprintf(fp, "<a href=\"%scommit/%s.html\">", relpath, ci->oid);
- if ((len = strlen(ci->summary)) > 79) {
- xmlencode(fp, ci->summary, 76);
- fputs("...", fp);
+ if ((len = strlen(ci->summary)) > summarylen) {
+ xmlencode(fp, ci->summary, summarylen - 1);
+ fputs("…", fp);
} else {
xmlencode(fp, ci->summary, len);
}