Moritz Heidkamp  committed d9b5021

chicken-build: use remove-directory from setup-api rather than shelling out to rm for purging existing installations in order to make it more portable (thanks Mario Goulart for the suggestion)

  • Participants
  • Parent commits 2fc085a
  • Branches master

Comments (0)

Files changed (1)

File chicken-build.scm

 #!/usr/bin/csi -s
-(use extras posix matchable)
+(use extras posix matchable (only setup-api remove-directory))
 (include "chicken-env")
 (define (print-error msg . args)
 (run "make")
 (when purge?
-  (run "rm" "-rf" chicken-path))
+  (remove-directory chicken-path))
 (create-directory chicken-path)
 (run "make" "install")