From af207e2a3d2bcbcfadd567613aadaa0784b5c525 Mon Sep 17 00:00:00 2001
From: Manuel Grizonnet <manuel.grizonnet@cnes.fr>
Date: Mon, 26 Mar 2018 14:32:20 +0200
Subject: [PATCH] ENH: change source file for standalone packages README to rst

---
 Documentation/Cookbook/rst/Installation.rst          | 12 ++++++------
 ...Installation_Linux.txt => Installation_Linux.rst} |  0
 ...tion_Linux_xdk.txt => Installation_Linux_xdk.rst} |  0
 ...{Installation_Macx.txt => Installation_Macos.rst} |  0
 ...ation_Macx_xdk.txt => Installation_Macos_xsk.rst} |  0
 ...allation_Windows.txt => Installation_Windows.rst} |  0
 ..._Windows_xdk.txt => Installation_Windows_xdk.rst} |  0
 Packaging/README.md                                  |  2 +-
 Packaging/installer_files.cmake                      |  6 +++---
 9 files changed, 10 insertions(+), 10 deletions(-)
 rename Documentation/Cookbook/rst/{Installation_Linux.txt => Installation_Linux.rst} (100%)
 rename Documentation/Cookbook/rst/{Installation_Linux_xdk.txt => Installation_Linux_xdk.rst} (100%)
 rename Documentation/Cookbook/rst/{Installation_Macx.txt => Installation_Macos.rst} (100%)
 rename Documentation/Cookbook/rst/{Installation_Macx_xdk.txt => Installation_Macos_xsk.rst} (100%)
 rename Documentation/Cookbook/rst/{Installation_Windows.txt => Installation_Windows.rst} (100%)
 rename Documentation/Cookbook/rst/{Installation_Windows_xdk.txt => Installation_Windows_xdk.rst} (100%)

diff --git a/Documentation/Cookbook/rst/Installation.rst b/Documentation/Cookbook/rst/Installation.rst
index 6058b155e9..4a18859fc7 100644
--- a/Documentation/Cookbook/rst/Installation.rst
+++ b/Documentation/Cookbook/rst/Installation.rst
@@ -3,9 +3,9 @@ Installation
 
 We provide different standalone binary packages for OTB-Applications:
 
--  for Windows platform (7 or higher)
+-  for Windows platform (Seven or higher)
 
--  for 64bit Linux distribution
+-  for 64 bits Linux distribution
 
 -  for MacOS X
 
@@ -21,17 +21,17 @@ You can get latest binary packages from our `Download page <https://www.orfeo-to
 Windows
 -------
 
-.. include:: Installation_Windows.txt
+.. include:: Installation_Windows.rst
 
-Linux x86_64
+Linux
 ------------
 
-.. include:: Installation_Linux.txt
+.. include:: Installation_Linux.rst
 
 MacOS X
 -------
 
-.. include:: Installation_Macx.txt
+.. include:: Installation_Macos.rst
 
 Other packages
 --------------
diff --git a/Documentation/Cookbook/rst/Installation_Linux.txt b/Documentation/Cookbook/rst/Installation_Linux.rst
similarity index 100%
rename from Documentation/Cookbook/rst/Installation_Linux.txt
rename to Documentation/Cookbook/rst/Installation_Linux.rst
diff --git a/Documentation/Cookbook/rst/Installation_Linux_xdk.txt b/Documentation/Cookbook/rst/Installation_Linux_xdk.rst
similarity index 100%
rename from Documentation/Cookbook/rst/Installation_Linux_xdk.txt
rename to Documentation/Cookbook/rst/Installation_Linux_xdk.rst
diff --git a/Documentation/Cookbook/rst/Installation_Macx.txt b/Documentation/Cookbook/rst/Installation_Macos.rst
similarity index 100%
rename from Documentation/Cookbook/rst/Installation_Macx.txt
rename to Documentation/Cookbook/rst/Installation_Macos.rst
diff --git a/Documentation/Cookbook/rst/Installation_Macx_xdk.txt b/Documentation/Cookbook/rst/Installation_Macos_xsk.rst
similarity index 100%
rename from Documentation/Cookbook/rst/Installation_Macx_xdk.txt
rename to Documentation/Cookbook/rst/Installation_Macos_xsk.rst
diff --git a/Documentation/Cookbook/rst/Installation_Windows.txt b/Documentation/Cookbook/rst/Installation_Windows.rst
similarity index 100%
rename from Documentation/Cookbook/rst/Installation_Windows.txt
rename to Documentation/Cookbook/rst/Installation_Windows.rst
diff --git a/Documentation/Cookbook/rst/Installation_Windows_xdk.txt b/Documentation/Cookbook/rst/Installation_Windows_xdk.rst
similarity index 100%
rename from Documentation/Cookbook/rst/Installation_Windows_xdk.txt
rename to Documentation/Cookbook/rst/Installation_Windows_xdk.rst
diff --git a/Packaging/README.md b/Packaging/README.md
index e845566c06..df83d58b21 100644
--- a/Packaging/README.md
+++ b/Packaging/README.md
@@ -1 +1 @@
-README
+OTB recipes to build standalone binary packages for Windows/Linux/Mac OS X
diff --git a/Packaging/installer_files.cmake b/Packaging/installer_files.cmake
index 941f7f8cdf..b864b74b7e 100644
--- a/Packaging/installer_files.cmake
+++ b/Packaging/installer_files.cmake
@@ -22,11 +22,11 @@ macro(installer_files)
   #configure README from rst docs
   set(RSTDOC_DIR "${PACKAGE_OTB_SRC_DIR}/Documentation/Cookbook/rst")
   if(APPLE)
-    set(README_FILE ${RSTDOC_DIR}/Installation_Macx.txt)
+    set(README_FILE ${RSTDOC_DIR}/Installation_Macos.rst)
   elseif(LINUX) #not osx
-    set(README_FILE ${RSTDOC_DIR}/Installation_Linux.txt)
+    set(README_FILE ${RSTDOC_DIR}/Installation_Linux.rst)
   elseif(WIN32) #windows
-    set(README_FILE ${RSTDOC_DIR}/Installation_Windows.txt)
+    set(README_FILE ${RSTDOC_DIR}/Installation_Windows.rst)
   endif()
   configure_file("${README_FILE}" ${CMAKE_BINARY_DIR}/README )
   install(FILES ${CMAKE_BINARY_DIR}/README DESTINATION ${PKG_STAGE_DIR} )
-- 
GitLab