diff options
author | Nicolas Graves <ngraves@ngraves.fr> | 2025-03-20 11:08:16 +0100 |
---|---|---|
committer | Liliana Marie Prikler <liliana.prikler@gmail.com> | 2025-06-15 16:57:09 +0200 |
commit | 8606878a316b45a3d9c353577e18d9d5a48936c5 (patch) | |
tree | 4b7d549b5831b8ad8a25bcd1b0fd2dfc224a56c9 /gnu/packages/patches/makem-replace-git.patch | |
parent | 0e6e32570a8f83c65dcfe2e2b44b6ff8aa7c6d32 (diff) |
gnu: Add makem-minimal.
* gnu/packages/emacs-build.scm (makem-minimal): New variable.
Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
Diffstat (limited to 'gnu/packages/patches/makem-replace-git.patch')
-rw-r--r-- | gnu/packages/patches/makem-replace-git.patch | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/gnu/packages/patches/makem-replace-git.patch b/gnu/packages/patches/makem-replace-git.patch new file mode 100644 index 0000000000..eced0618e3 --- /dev/null +++ b/gnu/packages/patches/makem-replace-git.patch @@ -0,0 +1,66 @@ +From 5396f4d6312b24eac79da2f70279df773443fd10 Mon Sep 17 00:00:00 2001 +From: Nicolas Graves <ngraves@ngraves.fr> +Date: Wed, 19 Mar 2025 13:02:47 +0100 +Subject: [PATCH] Replace git. + +--- + makem.sh | 34 +++++----------------------------- + 1 file changed, 5 insertions(+), 29 deletions(-) + +diff --git a/makem.sh b/makem.sh +index fd81e0f..4ec9577 100755 +--- a/makem.sh ++++ b/makem.sh +@@ -385,34 +385,13 @@ function byte-compile-file { + + # ** Files + +-function submodules { +- # Echo a list of submodules's paths relative to the repo root. +- # TODO: Parse with bash regexp instead of cut. +- git submodule status | awk '{print $2}' +-} +- +-function project-root { +- # Echo the root of the project (or superproject, if running from +- # within a submodule). +- root_dir=$(git rev-parse --show-superproject-working-tree) +- [[ $root_dir ]] || root_dir=$(git rev-parse --show-toplevel) +- [[ $root_dir ]] || error "Can't find repo root." +- +- echo "$root_dir" +-} +- + function files-project { + # Echo a list of files in project; or with $1, files in it +- # matching that pattern with "git ls-files". Excludes submodules. +- [[ $1 ]] && pattern="/$1" || pattern="." +- +- local excludes +- for submodule in $(submodules) +- do +- excludes+=(":!:$submodule") +- done +- +- git ls-files -- "$pattern" "${excludes[@]}" ++ # matching that pattern with "find". ++ if [[ $1 ]] ++ then find . -type f -name "$1" | sed 's|^\./||' ++ else find . -type f | sed 's|^\./||' ++ fi + } + + function dirs-project { +@@ -1223,9 +1202,6 @@ paths_temp+=("$package_initialize_file") + + trap cleanup EXIT INT TERM + +-# Change to project root directory first. +-cd "$(project-root)" +- + # Discover project files. + files_project_feature=($(files-project-feature)) + files_project_test=($(files-project-test)) +-- +2.48.1 + |