Ethereal-dev: [Ethereal-dev] POSIXLY_CORRECT patch

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Santeri Paavolainen <santtu@xxxxxxx>
Date: Wed, 12 Feb 2003 10:44:12 +0200 (EET)
doc/Makefile.am needs to be updated since pod2man will behave differently
with regards to command line argument ordering if POSIXLY_CORRECT is set.  

Currently the Makefile assumes the makefiles are run in a non-POSIX
compliant environment, and the manpage generation will fail if
POSIXLY_CORRECT is set (export POSIXLY_CORRECT=1).

Attached is a patch based from the 2003-02-11 CVS snapshot.

Perhaps a corresponding change needs to be done to Makefile.nmake too? (I
do not know whether POSIXLY_CORRECT is observed under Windows toolchain.)

-- 
santtu@xxxxxxx                    I have become death, destroyer of the worlds.
*** ethereal-2003-02-11/doc/Makefile.am	Wed Feb 12 10:35:29 2003
--- ethereal-2003-02-11-orig/doc/Makefile.am	Sun Sep 29 22:10:07 2002
***************
*** 25,70 ****
  # capture when $(VERSION) changes.
  
  ../ethereal.1: ethereal.pod ../config.h
! 	$(POD2MAN)                     \
  	--center="The Ethereal Network Analyzer" \
  	--release=$(VERSION)			 \
! 	 ethereal.pod > ../ethereal.1
  
  ethereal.pod: ethereal.pod.template  ../ethereal
  	../ethereal -G fields | $(PERL) $(srcdir)/dfilter2pod.pl $(srcdir)/ethereal.pod.template > ethereal.pod
  
  ../tethereal.1: tethereal.pod ../config.h
! 	$(POD2MAN)                     \
  	--center="The Ethereal Network Analyzer" \
  	--release=$(VERSION)			 \
! 	tethereal.pod > ../tethereal.1
  
  tethereal.pod: tethereal.pod.template  ../tethereal
  	../tethereal -G fields | $(PERL) $(srcdir)/dfilter2pod.pl $(srcdir)/tethereal.pod.template > tethereal.pod
  
  ../editcap.1: editcap.pod ../config.h
! 	$(POD2MAN)                      \
  	--center="The Ethereal Network Analyzer" \
  	--release=$(VERSION)			 \
! 	$(srcdir)/editcap.pod > ../editcap.1
  
  ../idl2eth.1: idl2eth.pod ../config.h
! 	$(POD2MAN)                      \
  	--center="The Ethereal Network Analyzer" \
  	--release=$(VERSION)			 \
! 	$(srcdir)/idl2eth.pod > ../idl2eth.1
  
  ../mergecap.1: mergecap.pod ../config.h
! 	$(POD2MAN)                      \
  	--center="The Ethereal Network Analyzer" \
  	--release=$(VERSION)			 \
! 	$(srcdir)/mergecap.pod > ../mergecap.1
  
  ../text2pcap.1: text2pcap.pod ../config.h
! 	$(POD2MAN)                      \
  	--center="The Ethereal Network Analyzer" \
  	--release=$(VERSION)			 \
! 	$(srcdir)/text2pcap.pod > ../text2pcap.1
  
  CLEANFILES =	\
  	ethereal.pod	\
--- 25,70 ----
  # capture when $(VERSION) changes.
  
  ../ethereal.1: ethereal.pod ../config.h
! 	$(POD2MAN) ethereal.pod                     \
  	--center="The Ethereal Network Analyzer" \
  	--release=$(VERSION)			 \
! 	> ../ethereal.1
  
  ethereal.pod: ethereal.pod.template  ../ethereal
  	../ethereal -G fields | $(PERL) $(srcdir)/dfilter2pod.pl $(srcdir)/ethereal.pod.template > ethereal.pod
  
  ../tethereal.1: tethereal.pod ../config.h
! 	$(POD2MAN) tethereal.pod                     \
  	--center="The Ethereal Network Analyzer" \
  	--release=$(VERSION)			 \
! 	> ../tethereal.1
  
  tethereal.pod: tethereal.pod.template  ../tethereal
  	../tethereal -G fields | $(PERL) $(srcdir)/dfilter2pod.pl $(srcdir)/tethereal.pod.template > tethereal.pod
  
  ../editcap.1: editcap.pod ../config.h
! 	$(POD2MAN) $(srcdir)/editcap.pod                     \
  	--center="The Ethereal Network Analyzer" \
  	--release=$(VERSION)			 \
! 	> ../editcap.1
  
  ../idl2eth.1: idl2eth.pod ../config.h
! 	$(POD2MAN) $(srcdir)/idl2eth.pod                     \
  	--center="The Ethereal Network Analyzer" \
  	--release=$(VERSION)			 \
! 	> ../idl2eth.1
  
  ../mergecap.1: mergecap.pod ../config.h
! 	$(POD2MAN) $(srcdir)/mergecap.pod                     \
  	--center="The Ethereal Network Analyzer" \
  	--release=$(VERSION)			 \
! 	> ../mergecap.1
  
  ../text2pcap.1: text2pcap.pod ../config.h
! 	$(POD2MAN) $(srcdir)/text2pcap.pod                     \
  	--center="The Ethereal Network Analyzer" \
  	--release=$(VERSION)			 \
! 	> ../text2pcap.1
  
  CLEANFILES =	\
  	ethereal.pod	\