From 691f858991c18adaa921cd9c5f3cabba7869a4cd Mon Sep 17 00:00:00 2001 From: Wouter Wijsman Date: Tue, 24 Dec 2024 13:50:56 +0100 Subject: [PATCH] Add psp-create-license-directory script --- m4/pspdev.m4 | 3 ++ tools/Makefile.am | 3 ++ tools/psp-create-license-directory | 86 ++++++++++++++++++++++++++++++ 3 files changed, 92 insertions(+) create mode 100755 tools/psp-create-license-directory diff --git a/m4/pspdev.m4 b/m4/pspdev.m4 index 0738e8368f..971c550e96 100644 --- a/m4/pspdev.m4 +++ b/m4/pspdev.m4 @@ -29,12 +29,15 @@ AC_DEFUN([AC_PSPDEV_PATH], pspdev_includedir="$pspdev/psp/include" pspdev_libdir="$pspdev/psp/lib" pspdev_sharedir="$pspdev/psp/share" + pspdev_bindir="$pspdev/bin" PSPDEV_INCLUDEDIR="$pspdev_includedir" PSPDEV_LIBDIR="$pspdev_libdir" PSPDEV_SHAREDIR="$pspdev_sharedir" + PSPDEV_BINDIR="$pspdev_bindir" AC_SUBST(PSPDEV_INCLUDEDIR) AC_SUBST(PSPDEV_LIBDIR) AC_SUBST(PSPDEV_SHAREDIR) + AC_SUBST(PSPDEV_BINDIR) ]) dnl Check for a tool prefixed with "psp-". diff --git a/tools/Makefile.am b/tools/Makefile.am index d69e53d554..1c1a3bc62f 100644 --- a/tools/Makefile.am +++ b/tools/Makefile.am @@ -21,3 +21,6 @@ psp_prxgen_SOURCES = psp-prxgen.c getopt_long.c psp_fixup_imports_SOURCES = psp-fixup-imports.c getopt_long.c sha1.c noinst_HEADERS = elftypes.h getopt.h prxtypes.h sha1.h types.h + +psp_create_license_directorydir = @PSPDEV_BINDIR@ +psp_create_license_directory_SCRIPTS = psp-create-license-directory \ No newline at end of file diff --git a/tools/psp-create-license-directory b/tools/psp-create-license-directory new file mode 100755 index 0000000000..34c6f79b8a --- /dev/null +++ b/tools/psp-create-license-directory @@ -0,0 +1,86 @@ +#!/bin/bash + +LICENSE_DIRECTORY="third-party-licenses" +EXIT_CODE=0 +LIBRARIES=("pspsdk" "newlib" "pthread-embedded" $@) +SCRIPT_NAME="$(basename "$0")" + +usage ( ) { + cat <