Author: gsim
Date: Thu Jul 15 18:37:31 2010
New Revision: 964527
URL: http://svn.apache.org/viewvc?rev=964527&view=rev
Log:
Add license to help2man replacment scripts (add shebang to the executable file)
Modified:
qpid/trunk/qpid/cpp/docs/man/generate_manpage
qpid/trunk/qpid/cpp/docs/man/groffify_options.sed
qpid/trunk/qpid/cpp/docs/man/groffify_template.sed
Modified: qpid/trunk/qpid/cpp/docs/man/generate_manpage
URL:
http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/docs/man/generate_manpage?rev=964527&r1=964526&r2=964527&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/docs/man/generate_manpage (original)
+++ qpid/trunk/qpid/cpp/docs/man/generate_manpage Thu Jul 15 18:37:31 2010
@@ -1,3 +1,22 @@
+#!/bin/sh
+#
+# 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
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
$2 --help | grep -v 'Usage: ' | sed -f $(dirname $0)/groffify_options.sed >
.temp.options.groff
cat $1 | sed -f $(dirname $0)/groffify_template.sed | sed -e '/^\.PP$/ r
.temp.options.groff' -e "/^.SH NAME/ i\
.TH QPIDD \"1\" \"$(date +'%B %Y')\" \"$($2 -v)\" \"User Commands\"
Modified: qpid/trunk/qpid/cpp/docs/man/groffify_options.sed
URL:
http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/docs/man/groffify_options.sed?rev=964527&r1=964526&r2=964527&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/docs/man/groffify_options.sed (original)
+++ qpid/trunk/qpid/cpp/docs/man/groffify_options.sed Thu Jul 15 18:37:31 2010
@@ -1,3 +1,21 @@
+#
+# 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
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
s/^\( \{2\}\)\(.*)\)\( \{2,\}\)/.TP\n\2\n/
s/^\( \{2\}\)\(.*\]\)\( \{2,\}\)/.TP\n\2\n/
s/^\( \{2\}\)\(.*\b\)\( \{2,\}\)/.TP\n\2\n/
Modified: qpid/trunk/qpid/cpp/docs/man/groffify_template.sed
URL:
http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/docs/man/groffify_template.sed?rev=964527&r1=964526&r2=964527&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/docs/man/groffify_template.sed (original)
+++ qpid/trunk/qpid/cpp/docs/man/groffify_template.sed Thu Jul 15 18:37:31 2010
@@ -1,3 +1,21 @@
+#
+# 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
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
/\[FILES\]/ i\
.PP
s/^\[\([A-Z ]*\)\]/.SH \1/
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:[email protected]