summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--gnu/packages/netpbm.scm8
1 files changed, 3 insertions, 5 deletions
diff --git a/gnu/packages/netpbm.scm b/gnu/packages/netpbm.scm
index af005c6aec..c88b5a9dff 100644
--- a/gnu/packages/netpbm.scm
+++ b/gnu/packages/netpbm.scm
@@ -171,12 +171,10 @@
              (apply invoke "make" "package"
                     (string-append "pkgdir=" out) make-flags)
              ;; Remove superfluous files.
-             (invoke "rm" "-r" (string-append out "/link"))
-             (invoke "rm" "-r" (string-append out "/misc"))
              (with-directory-excursion out
-               (for-each delete-file
-                         '("config_template" "pkginfo" "README"
-                           "VERSION")))
+               (for-each delete-file-recursively
+                         '("config_template" "pkginfo" "README" "VERSION"
+                           "link/" "misc/")))
              #t))))))
    (synopsis "Toolkit for manipulation of images")
    (description