summaryrefslogtreecommitdiff
path: root/sbin/fdisk/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/fdisk/Makefile')
-rw-r--r--sbin/fdisk/Makefile14
1 files changed, 7 insertions, 7 deletions
diff --git a/sbin/fdisk/Makefile b/sbin/fdisk/Makefile
index 1c4ab151976..ca52b654f48 100644
--- a/sbin/fdisk/Makefile
+++ b/sbin/fdisk/Makefile
@@ -1,5 +1,5 @@
#
-# $OpenBSD: Makefile,v 1.27 2004/05/03 15:18:19 drahn Exp $
+# $OpenBSD: Makefile,v 1.28 2004/11/06 18:57:59 otto Exp $
#
# Copyright (c) 1997 Tobias Weingartner
# All rights reserved.
@@ -38,14 +38,14 @@ CLEANFILES+=manual.c
.ifdef NOMAN
manual.c:
- (echo 'char manpage[] = "\\'; \
- echo "no manual\\"; \
- echo '";' ) > manual.c
+ (echo 'const char manpage[] = {'; \
+ echo 'no manual' | gzip -9c | hexdump -ve '"0x" 1/1 "%02x,"'; \
+ echo '};'; echo 'const int manpage_sz = sizeof(manpage);') > manual.c
.else
manual.c: fdisk.cat8
- (echo 'char manpage[] = "\\'; \
- sed -e 's/[\\"]/\\&/g' -e 's/$$/\\n\\/' fdisk.cat8; \
- echo '";' ) > manual.c
+ (echo 'const char manpage[] = {'; \
+ gzip -9c fdisk.cat8 | hexdump -ve '"0x" 1/1 "%02x,"'; \
+ echo '};'; echo 'const int manpage_sz = sizeof(manpage);') > manual.c
.endif
.else