summaryrefslogtreecommitdiff
path: root/gnu/packages/java.scm
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2022-12-19 16:00:23 +0200
committerEfraim Flashner <efraim@flashner.co.il>2022-12-20 17:06:37 +0200
commitc8ebfa0dd9514affbc30ca56f9f8cce0fc7550dc (patch)
treea2eceda10c1c363bb2b9495fe74b2b0e3441db92 /gnu/packages/java.scm
parentf667aeb642c5deab342fe42f3744eb9a7fccc003 (diff)
gnu: openjdk11: Fix find-files syntax.
* gnu/packages/java.scm (openjdk11)[source]: Remove extra characters from find-files invocation. [arguments]: Remove extra characters from find-files invocations in multiple phases.
Diffstat (limited to 'gnu/packages/java.scm')
-rw-r--r--gnu/packages/java.scm15
1 files changed, 7 insertions, 8 deletions
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index fa4d2d3bd0..e06020eedf 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -1772,7 +1772,7 @@ new Date();"))
"1prvqy0ysz0999wrhsrbz6vrknpqfihl9l74l16ph93g89dqi5ia"))
(modules '((guix build utils)))
(snippet
- '(for-each delete-file (find-files "." ".*.(bin|exe|jar)$")))))
+ '(for-each delete-file (find-files "." "\\.(bin|exe|jar)$")))))
(build-system gnu-build-system)
(outputs '("out" "jdk" "doc"))
(arguments
@@ -1851,8 +1851,7 @@ new Date();"))
(format (current-error-port)
"warning: failed to substitute: ~a~%"
file))))
- (find-files "."
- "\\.c$|\\.h$")))))
+ (find-files "." "\\.c$|\\.h$")))))
(add-before 'build 'write-source-revision-file
(lambda _
(with-output-to-file ".src-rev"
@@ -1879,7 +1878,7 @@ new Date();"))
,@make-flags))))
(replace 'install
(lambda _
- (let ((images (car (find-files "build" ".*-server-release"
+ (let ((images (car (find-files "build" "-server-release"
#:directories? #t))))
(copy-recursively (string-append images "/images/jdk")
#$output:jdk)
@@ -1913,7 +1912,7 @@ new Date();"))
(invoke "unzip" archive))
(delete-file archive)
(with-directory-excursion dir
- (let ((char-data-files (find-files "." "CharacterData.*")))
+ (let ((char-data-files (find-files "." "CharacterData")))
(for-each (lambda (file)
(substitute* file
(((string-append "This file was generated "
@@ -1924,7 +1923,7 @@ new Date();"))
"file"))))
char-data-files)))
(with-directory-excursion dir
- (let ((files (find-files "." ".*" #:directories? #t)))
+ (let ((files (find-files "." #:directories? #t)))
(apply invoke "zip" "-0" "-X" archive files))))))
(add-after 'strip-character-data-timestamps 'remove-extraneous-files
(lambda* (#:key outputs #:allow-other-keys)
@@ -1949,7 +1948,7 @@ new Date();"))
(invoke "unzip" archive))
(delete-file archive)
(for-each (compose repack-archive canonicalize-path)
- (find-files dir "(ct.sym|\\.jar)$"))
+ (find-files dir "(ct\\.sym|\\.jar)$"))
(let ((reset-file-timestamp
(lambda (file)
(let ((s (lstat file)))
@@ -1959,7 +1958,7 @@ new Date();"))
(for-each reset-file-timestamp
(find-files dir #:directories? #t)))
(with-directory-excursion dir
- (let ((files (find-files "." ".*" #:directories? #t)))
+ (let ((files (find-files "." #:directories? #t)))
(apply invoke "zip" "-0" "-X" archive files)))))))
(for-each repack-archive
(find-files #$output:doc "\\.zip$"))