From ad7786366886f39ae3b1e09285e451a0f4adc35e Mon Sep 17 00:00:00 2001
From: Seth Hillbrand <hillbrand@ucdavis.edu>
Date: Thu, 14 Feb 2019 14:42:12 -0800
Subject: [PATCH] Cleanup build script locations

Some developer scripts ended up in the demonstration scripts directory
that was bundled with builds.  This moves them to the build_tools
directory and updates the associated Documentation

Fixes: lp:1815891
* https://bugs.launchpad.net/kicad/+bug/1815891
---
 CMakeModules/Findngspice.cmake                          | 2 +-
 README.txt                                              | 4 ++--
 {scripts => scripting/build_tools}/get_libngspice_so.sh | 0
 {scripts => scripting/build_tools}/mk_macos_icons.py    | 0
 {scripts => scripting/build_tools}/mk_mime_icons.py     | 0
 5 files changed, 3 insertions(+), 3 deletions(-)
 rename {scripts => scripting/build_tools}/get_libngspice_so.sh (100%)
 rename {scripts => scripting/build_tools}/mk_macos_icons.py (100%)
 rename {scripts => scripting/build_tools}/mk_mime_icons.py (100%)

diff --git a/CMakeModules/Findngspice.cmake b/CMakeModules/Findngspice.cmake
index 973194ca89..880ae1169e 100644
--- a/CMakeModules/Findngspice.cmake
+++ b/CMakeModules/Findngspice.cmake
@@ -47,7 +47,7 @@ if( ${NGSPICE_INCLUDE_DIR} STREQUAL "NGSPICE_INCLUDE_DIR-NOTFOUND" OR ${NGSPICE_
     message( "Most of ngspice packages do not provide the required libngspice library." )
     message( "You can either compile ngspice configured with --with-ngshared parameter" )
     message( "or run a script that does the job for you:" )
-    message( "  cd ./scripts" )
+    message( "  cd ./scripting/build_tools" )
     message( "  chmod +x get_libngspice_so.sh" )
     message( "  ./get_libngspice_so.sh" )
     message( "  sudo ./get_libngspice_so.sh install" )
diff --git a/README.txt b/README.txt
index b9b1446503..0b0c34843b 100644
--- a/README.txt
+++ b/README.txt
@@ -40,8 +40,8 @@ polygon           - Sourcecode of the polygon library
 potrace           - Sourcecode of the potrace library, used in bitmap2component
 qa                - Testcases using the python interface
 resources         - Resources for freedesktop mime-types for linux
-scripting         - SWIG Python scripting definitions
-scripts           - Helper scripts for various things
+scripting         - SWIG Python scripting definitions and build scripts
+scripts           - Example scripts for distribution with KiCad
 template          - Project and pagelayout templates
 tools             - Other miscellaneous helpers for testing
 utils             - Small utils for kicad, e.g. IDF tools
diff --git a/scripts/get_libngspice_so.sh b/scripting/build_tools/get_libngspice_so.sh
similarity index 100%
rename from scripts/get_libngspice_so.sh
rename to scripting/build_tools/get_libngspice_so.sh
diff --git a/scripts/mk_macos_icons.py b/scripting/build_tools/mk_macos_icons.py
similarity index 100%
rename from scripts/mk_macos_icons.py
rename to scripting/build_tools/mk_macos_icons.py
diff --git a/scripts/mk_mime_icons.py b/scripting/build_tools/mk_mime_icons.py
similarity index 100%
rename from scripts/mk_mime_icons.py
rename to scripting/build_tools/mk_mime_icons.py