]> granicus.if.org Git - apache/blobdiff - build/fastgen.sh
update after backport
[apache] / build / fastgen.sh
index d4301d7ccb32aeb5d15769d617ea0caf0846764c..7b089577276035a5912a1732b44ae18f038c130b 100755 (executable)
@@ -1,11 +1,11 @@
 #! /bin/sh
 #
-# Copyright 2000-2006 The Apache Software Foundation or its licensors, as
-# applicable.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
 #
 #     http://www.apache.org/licenses/LICENSE-2.0
 #
@@ -52,7 +52,11 @@ if test "$bsd_makefile" = "yes"; then
         real_srcdir=$top_srcdir/$dir
         real_builddir=$top_builddir/$dir
     fi
-    cat - $top_srcdir/$makefile.in <<EOF |sed 's/^include \(.*\)/.include "\1"/' >$makefile 
+    cat - $top_srcdir/$makefile.in <<EOF      | \
+       sed 's/^include \(.*\)/.include "\1"/' | \
+       sed 's/^ifdef \(.*\)/.ifdef \1/'       | \
+       sed 's/^else\(.*\)/.else\1/'           | \
+       sed 's/^endif\(.*\)/.endif\1/' >$makefile 
 top_srcdir   = $top_srcdir
 top_builddir = $top_builddir
 srcdir       = $real_srcdir