Control: tags -1 patch

For reference, this is the patch used in Condaforge.

https://github.com/conda-forge/staged-recipes/pull/8764

Credits to  Teake Nutma <t.a.nu...@rug.nl>
diff --git a/man/sex.1.in b/man/source-extractor.1.in
similarity index 84%
rename from man/sex.1.in
rename to man/source-extractor.1.in
index d0f7208..b3e2a64 100644
--- a/man/sex.1.in
+++ b/man/source-extractor.1.in
@@ -1,18 +1,18 @@
 .TH SEXTRACTOR "1" "@DATE3@" "SExtractor @PACKAGE_VERSION@" "User Commands"
 .SH NAME
-sex \- extract a source catalogue from an astronomical FITS image
+source-extractor \- extract a source catalogue from an astronomical FITS image
 .SH SYNOPSIS
-.B sex \fIimage\fR [\fI-c configuration-file\fR]
+.B source-extractor \fIimage\fR [\fI-c configuration-file\fR]
 .RS
 [\fI-parameter1 value1 -parameter2 value2 ...\fR]
 .RE
 .TP
-.B sex \fIimage\_detect\fR \fIimage_measure\fR [\fI-c configuration-file\fR]
+.B source-extractor \fIimage\_detect\fR \fIimage_measure\fR [\fI-c configuration-file\fR]
 .RS
 [\fI-parameter1 value1 -parameter2 value2 ...\fR]
 .RE
 .TP
-.B sex \fI-d\fR
+.B source-extractor \fI-d\fR
 .SH DESCRIPTION
 SExtractor is a program that builds a catalogue of objects from an astronomical
 image. Although it is particularly oriented towards reduction of large scale
diff --git a/man/sex.x b/man/source-extractor.x
similarity index 8%
rename from man/sex.x
rename to man/source-extractor.x
index c6f97ad..134310f 100644
--- a/man/sex.x
+++ b/man/source-extractor.x
@@ -1,2 +1,2 @@
 [name]
-sex \- extract a source catalog from an astronomical FITS image
+source-extractor \- extract a source catalog from an astronomical FITS image
diff --git a/configure.ac b/configure.ac
index 7ff6cce..6b6415d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -98,6 +98,7 @@ if test x$enable_auto_flags = xyes; then
 fi
 LT_INIT
 AC_PROG_INSTALL
+AC_PROG_LN_S
 
 # Checks for libraries.
 AC_CHECK_LIB(m, sin)
@@ -335,7 +336,7 @@ debian/changelog
 doc/Makefile
 doc/src/conf.py
 man/Makefile
-man/sex.1
+man/source-extractor.1
 src/Makefile
 src/fits/Makefile
 src/levmar/Makefile
diff --git a/doc/src/Config.rst b/doc/src/Config.rst
index be953db..111823d 100644
--- a/doc/src/Config.rst
+++ b/doc/src/Config.rst
@@ -19,7 +19,7 @@ By redirecting the standard output of SExtractor to a file, one creates a config
 
 .. code-block:: console
 
-  $ sex -d > default.sex
+  $ source-extractor -d > default.sex
 
 A more extensive dump with less commonly used parameters can be generated by using the ``-dd`` option.
 
diff --git a/doc/src/Input.rst b/doc/src/Input.rst
index fccf40e..e5e31b8 100644
--- a/doc/src/Input.rst
+++ b/doc/src/Input.rst
@@ -34,7 +34,7 @@ Double image mode is automatically engaged when providing |SExtractor| with two
 
 .. code-block:: console
 
-  $ sex detection.fits,measurement.fits
+  $ source-extractor detection.fits,measurement.fits
 
 A space may be used instead of a coma. In the example above, :file:`detection.fits` is used as a detection image, while measurements are carried out on :file:`measurement.fits`.
 
diff --git a/doc/src/Installing.rst b/doc/src/Installing.rst
index 6079234..37a06ee 100644
--- a/doc/src/Installing.rst
+++ b/doc/src/Installing.rst
@@ -87,7 +87,7 @@ In all cases, |SExtractor| can now be compiled with
 
   $ make -j
 
-An :file:`src/sex` executable is created. For system-wide installation, run the usual
+An :file:`src/source-extractor` executable is created. For system-wide installation, run the usual
 
 .. code-block:: console
 
@@ -97,7 +97,7 @@ You may now check that the software is properly installed by simply typing in yo
 
 .. code-block:: console
 
-  $ sex
+  $ source-extractor
 
 which will return the version number and other basic information (note that some shells require the :program:`rehash` command to be run before making a freshly installed executable accessible in the execution path).
 
diff --git a/doc/src/Param.rst b/doc/src/Param.rst
index 0a67f67..438b34f 100644
--- a/doc/src/Param.rst
+++ b/doc/src/Param.rst
@@ -9,7 +9,7 @@ In addition to the configuration file detailed above, |SExtractor| requires a fi
 
 .. code-block:: console
 
- $ sex -dp
+ $ source-extractor -dp
 
 Format
 ~~~~~~
diff --git a/doc/src/Using.rst b/doc/src/Using.rst
index 953b84e..95d8ea0 100644
--- a/doc/src/Using.rst
+++ b/doc/src/Using.rst
@@ -11,7 +11,7 @@ Using SExtractor
 
 .. code-block:: console
 
-  $ sex Image1 [Image2] -c configuration-file [-Parameter1 Value1 -Parameter2 Value2 ...]
+  $ source-extractor Image1 [Image2] -c configuration-file [-Parameter1 Value1 -Parameter2 Value2 ...]
 
 The parts enclosed within brackets are optional.
 Any `-Parameter Value` statement in the command-line overrides the corresponding definition in the configuration file or any default value (see :ref:`configuration section<config_file>`).
diff --git a/man/Makefile.am b/man/Makefile.am
index 8e1f78c..695885c 100644
--- a/man/Makefile.am
+++ b/man/Makefile.am
@@ -26,5 +26,5 @@
 #
 #%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
-dist_man_MANS = sex.1 sex.x
+dist_man_MANS = source-extractor.1 source-extractor.x
 
diff --git a/src/Makefile.am b/src/Makefile.am
index 3017766..1b42c83 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -34,9 +34,9 @@ if USE_MODEL
   LEVDIR		= levmar
 endif
 SUBDIRS			= fits $(LEVDIR) wcs
-bin_PROGRAMS		= sex
-check_PROGRAMS		= sex
-sex_SOURCES		= analyse.c assoc.c astrom.c back.c bpro.c catout.c \
+bin_PROGRAMS		= source-extractor
+check_PROGRAMS		= source-extractor
+source_extractor_SOURCES		= analyse.c assoc.c astrom.c back.c bpro.c catout.c \
 			  check.c clean.c dgeo.c extract.c $(FFTSOURCE) \
 			  field.c filter.c fitswcs.c flag.c graph.c growth.c \
 			  header.c image.c interpolate.c main.c makeit.c \
@@ -53,9 +53,12 @@ sex_SOURCES		= analyse.c assoc.c astrom.c back.c bpro.c catout.c \
 			  sexheadsc.h som.h threads.h types.h wcscelsys.h \
 			  weight.h winpos.h xml.h
 ldactoasc_SOURCES 	= ldactoasc.c ldactoasc.h
-sex_LDADD		= $(srcdir)/fits/libfits.a \
+source_extractor_LDADD		= $(srcdir)/fits/libfits.a \
 			  $(srcdir)/wcs/libwcs_c.a \
 			  $(LEVLIB) 
 ldactoasc_LDADD		= $(srcdir)/fits/libfits.a
 DATE=`date +"%Y-%m-%d"`
 
+install-exec-hook:
+			  $(LN_S) $(DESTDIR)$(bindir)/source-extractor$(EXEEXT) \
+			          $(DESTDIR)$(bindir)/sex$(EXEEXT)
\ No newline at end of file
diff --git a/tests/modelfit.test b/tests/modelfit.test
index a98dc0e..791032c 100755
--- a/tests/modelfit.test
+++ b/tests/modelfit.test
@@ -1,4 +1,4 @@
 #! /bin/sh
 # Copyright (C) 2007 Emmanuel Bertin.
 # 
-../src/sex galaxies.fits -WEIGHT_IMAGE galaxies.weight.fits -CATALOG_NAME galaxies.cat
+../src/source-extractor galaxies.fits -WEIGHT_IMAGE galaxies.weight.fits -CATALOG_NAME galaxies.cat

Reply via email to