]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Rename installed version of compile_et
authorSimon Wilkinson <sxw@inf.ed.ac.uk>
Wed, 22 Jul 2009 00:11:15 +0000 (01:11 +0100)
committerDerrick Brashear <shadow|account-1000005@unknown>
Thu, 17 Dec 2009 17:48:45 +0000 (09:48 -0800)
Rename the installed version of compile_et to afs_compile_et to avoid
conflicts with other, more standard, users of com_err. Also rename the
man page to match

Reviewed-on: http://gerrit.openafs.org/175
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from c321cb467220bbdf2ff49d5fa6e052fd27a4df5e)
Change-Id: I6de96fd2056a632dc8770b5da73604dd20f8c125
Reviewed-on: http://gerrit.openafs.org/992

doc/man-pages/pod1/afs_compile_et.pod [new file with mode: 0644]
doc/man-pages/pod1/compile_et.pod [deleted file]
src/comerr/Makefile.in
src/packaging/RedHat/openafs.spec.in

diff --git a/doc/man-pages/pod1/afs_compile_et.pod b/doc/man-pages/pod1/afs_compile_et.pod
new file mode 100644 (file)
index 0000000..4f15a65
--- /dev/null
@@ -0,0 +1,83 @@
+=head1 NAME
+
+afs_compile_et - Produce error text tables for compilation
+
+=head1 SYNOPSIS
+
+=for html
+<div class="synopsis">
+
+B<afs_compile_et> [B<-debug>] S<<< [B<-language> <I<lang>>] >>>
+    S<<< [B<-prefix> <I<prefix>>] >>> [B<-v> <I<version>>] <I<error_table>>
+
+=for html
+</div>
+
+=head1 DESCRIPTION
+
+The B<afs_compile_et> command builds the error text tables for compilation.
+This includes both a header file that contains a set of mappings between
+error names and values and a F<.c> (or F<.msf>) file that provides a text
+table of descriptions.
+
+The <I<error_table>> argument specifies which error table to generate.
+The error table specification should exist in the current working
+directory or in the directory specified with B<-prefix> and should be
+named F<error_table.et>.
+
+=head1 CAUTIONS
+
+This command is used internally within the build process for OpenAFS.
+Most users will access this information via L<translate_et(1)> rather than
+via B<afs_compile_et>.
+
+This command does not use the standard AFS command-line parsing package.
+
+=head1 OPTIONS
+
+=over 4
+
+=item B<-debug>
+
+Does nothing.  It neither adds debugging information to the output nor
+provides additional information on its operation.
+
+=item B<-language> <I<lang>>
+
+Specifies the type of output to generate.  Currently, only ANSI C and K&R
+are supported values (via the B<c> and B<k&r-c> values, respectively).
+The default is ANSI C.  There is some support for C++ started, but that is
+not yet supported.
+
+=item B<-prefix <I<prefix>>
+
+Specifies the directory to search for the F<error_table.et> file.
+
+=item B<-v> <I<version>>
+
+Specified the type of output file: valid values are 1 (the default, for C
+files) or 2, for B<.msf> file generation.
+
+=back
+
+=head1 EXAMPLES
+
+The following command generates the files F<pterror.h> and F<pterror.c>, 
+suitable for use with C programs:
+
+   % afs_compile_et -p path/to/src/ptserver pterror
+
+The following command generates K&R style files instead:
+
+   % afs_compile_et -p path/to/src/ptserver -lang 'k&r-c' pterror
+
+=head1 SEE ALSO
+
+L<translate_et(1)>
+
+=head1 COPYRIGHT
+
+Copyright 2009 Steven Jenkins <steven@endpoint.com>
+
+This documentation is covered by the IBM Public License Version 1.0.  This
+man page was written by Steven Jenkins for OpenAFS.
diff --git a/doc/man-pages/pod1/compile_et.pod b/doc/man-pages/pod1/compile_et.pod
deleted file mode 100644 (file)
index cfdb146..0000000
+++ /dev/null
@@ -1,83 +0,0 @@
-=head1 NAME
-
-compile_et - Produce error text tables for compilation
-
-=head1 SYNOPSIS
-
-=for html
-<div class="synopsis">
-
-B<compile_et> [B<-debug>] S<<< [B<-language> <I<lang>>] >>>
-    S<<< [B<-prefix> <I<prefix>>] >>> [B<-v> <I<version>>] <I<error_table>>
-
-=for html
-</div>
-
-=head1 DESCRIPTION
-
-The B<compile_et> command builds the error text tables for compilation.
-This includes both a header file that contains a set of mappings between
-error names and values and a F<.c> (or F<.msf>) file that provides a text
-table of descriptions.
-
-The <I<error_table>> argument specifies which error table to generate.
-The error table specification should exist in the current working
-directory or in the directory specified with B<-prefix> and should be
-named F<error_table.et>.
-
-=head1 CAUTIONS
-
-This command is used internally within the build process for OpenAFS.
-Most users will access this information via L<translate_et(1)> rather than
-via B<compile_et>.
-
-This command does not use the standard AFS command-line parsing package.
-
-=head1 OPTIONS
-
-=over 4
-
-=item B<-debug>
-
-Does nothing.  It neither adds debugging information to the output nor
-provides additional information on its operation.
-
-=item B<-language> <I<lang>>
-
-Specifies the type of output to generate.  Currently, only ANSI C and K&R
-are supported values (via the B<c> and B<k&r-c> values, respectively).
-The default is ANSI C.  There is some support for C++ started, but that is
-not yet supported.
-
-=item B<-prefix <I<prefix>>
-
-Specifies the directory to search for the F<error_table.et> file.
-
-=item B<-v> <I<version>>
-
-Specified the type of output file: valid values are 1 (the default, for C
-files) or 2, for B<.msf> file generation.
-
-=back
-
-=head1 EXAMPLES
-
-The following command generates the files F<pterror.h> and F<pterror.c>, 
-suitable for use with C programs:
-
-   % compile_et -p path/to/src/ptserver pterror
-
-The following command generates K&R style files instead:
-
-   % compile_et -p path/to/src/ptserver -lang 'k&r-c' pterror
-
-=head1 SEE ALSO
-
-L<translate_et(1)>
-
-=head1 COPYRIGHT
-
-Copyright 2009 Steven Jenkins <steven@endpoint.com>
-
-This documentation is covered by the IBM Public License Version 1.0.  This
-man page was written by Steven Jenkins for OpenAFS.
index 2dba67874dff094151472ef0d5f646d3fece237e..4102de1379d4bc7dbc5c006f98bf3f92b3d00d6d 100644 (file)
@@ -28,9 +28,9 @@ libcom_err.a: error_msg.o et_name.o com_err.o AFS_component_version_number.o
 #
 # Installation targets
 #
-install:  ${DESTDIR}${bindir}/compile_et ${DESTDIR}${includedir}/afs/com_err.h ${DESTDIR}${includedir}/afs/error_table.h ${DESTDIR}${includedir}/afs/mit-sipb-cr.h ${DESTDIR}${libdir}/afs/libcom_err.a
+install:  ${DESTDIR}${bindir}/afs_compile_et ${DESTDIR}${includedir}/afs/com_err.h ${DESTDIR}${includedir}/afs/error_table.h ${DESTDIR}${includedir}/afs/mit-sipb-cr.h ${DESTDIR}${libdir}/afs/libcom_err.a
 
-${DEST}/bin/compile_et: compile_et
+${DEST}/bin/afs_compile_et: compile_et
        ${INSTALL} $? $@
 
 ${DEST}/include/afs/com_err.h: com_err.h
@@ -59,7 +59,7 @@ compile_et.o:  AFS_component_version_number.c
 error_table.o: et_lex.lex.c
 
 include ../config/Makefile.version
-${DESTDIR}${bindir}/compile_et: compile_et
+${DESTDIR}${bindir}/afs_compile_et: compile_et
        ${INSTALL} $? $@
 
 ${DESTDIR}${includedir}/afs/com_err.h: com_err.h
@@ -86,5 +86,5 @@ ${DESTDIR}${libdir}/afs/libcom_err.a: libcom_err.a
 ${TOP_LIBDIR}/libcom_err.a: libcom_err.a
        ${INSTALL} $? $@
 
-dest:  ${DEST}/bin/compile_et ${DEST}/include/afs/com_err.h ${DEST}/include/afs/error_table.h ${DEST}/include/afs/mit-sipb-cr.h ${DEST}/lib/afs/libcom_err.a
+dest:  ${DEST}/bin/afs_compile_et ${DEST}/include/afs/com_err.h ${DEST}/include/afs/error_table.h ${DEST}/include/afs/mit-sipb-cr.h ${DEST}/lib/afs/libcom_err.a
 
index 889c0b26a17055392b324e5aebb9d22a84bf4702..45402dd54be1481ed99f1ca03bd37a76ce5dc4c0 100644 (file)
@@ -1195,9 +1195,8 @@ for f in bos fs kas klog klog.krb kpwvalid pts tokens tokens.krb udebug vos ; do
   rm -f $RPM_BUILD_ROOT%{_prefix}/afs/bin/$f
 done
 
-# compile_et is duplicated in e2fsprogs
 # the rest are not needed.
-for f in compile_et dlog dpass install knfs livesys xstat_cm_test xstat_fs_test ; do
+for f in dlog dpass install knfs livesys xstat_cm_test xstat_fs_test ; do
   rm -f $RPM_BUILD_ROOT%{_bindir}/$f
 done
 
@@ -1569,7 +1568,7 @@ dkms remove -m %{name} -v %{dkms_version} --rpm_safe_upgrade --all ||:
 %{_libdir}/librxstat.a
 %{_libdir}/libubik.a
 %{_mandir}/man1/rxgen.*
-%{_mandir}/man1/compile_et.*
+%{_mandir}/man1/afs_compile_et.*
 
 %if %{build_dkmspkg}
 %files -n dkms-%{name}