#!/bin/sh
#############################################################################
#                                  _   _ ____  _     
#  Project                     ___| | | |  _ \| |    
#                             / __| | | | |_) | |    
#                            | (__| |_| |  _ <| |___ 
#                             \___|\___/|_| \_\_____|
#
# Copyright (C) 1998 Daniel Stenberg and Rafael Sagula
# ------------------------------------------------------------
#   This program is free software; you can redistribute it and/or modify
#   it under the terms of the GNU General Public License as published by
#   the Free Software Foundation; either version 2, or (at your option)
#   any later version.
#
#   This program is distributed in the hope that it will be useful,
#   but WITHOUT ANY WARRANTY; without even the implied warranty of
#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#   GNU General Public License for more details.
#
#   You should have received a copy of the GNU General Public License
#   along with this program; if not, write to the Free Software
#   Foundation, Inc., 59 Temple Place - Suite 330, Boston,
#   MA 02111-1307, USA
# ------------------------------------------------------------
# Main author:
# - Daniel Stenberg <Daniel.Stenberg@sth.frontec.se>
#
# 	http://www.fts.frontec.se/~dast/curl/
#
# $Source: /home/hardcore/dast/src/curl/RCS/mkhelp,v $
# $Revision: 1.2 $
# $Date: 1998/03/23 10:36:27 $
# $Author: dast $
# $State: Exp $
# $Locker:  $
#
# ------------------------------------------------------------
# $Log: mkhelp,v $
# Revision 1.2  1998/03/23 10:36:27  dast
# fixed header
#
# Revision 1.1  1998/03/23 09:52:18  dast
# Initial revision
#
# make the hugehelp() function
sed -e 's:\\:\\\\:g' -e 's:\":\\\":g' README |
  awk '
   BEGIN {
     print "/* NEVER EVER edit this manually, fix the mkhelp script instead! */";
     print "#include <stdio.h>";
     print "void hugehelp(void)";
     print "{";
     print "puts ( ";
   }
   {
     printf("\"%s\\n\"\n", $0);
   }
   END {
     print " ) ; ";
     print "}"
   }'

