Created
May 21, 2013 15:07
-
-
Save ayato-p/5620540 to your computer and use it in GitHub Desktop.
GaucheのHEADをMakeするスクリプト
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(use gauche.process) | |
(use file.util) | |
(define *conf* `((gauche-repo . "https://github.com/shirok/Gauche.git") | |
(tmp-dir . "./tmp") | |
(gauche-dir . "/Gauche"))) | |
(define (main args) | |
(let* ((repo (assq-ref *conf* 'gauche-repo)) | |
(tmp (assq-ref *conf* 'tmp-dir)) | |
(proj-dir (string-append tmp | |
(assq-ref *conf* 'gauche-dir)))) | |
(current-directory (home-directory)) | |
(run-process (list 'git | |
'clone | |
(string->symbol repo) | |
(string->symbol proj-dir)) | |
:wait #t) | |
(run-process '(sh DIST gen) | |
:wait #t | |
:directory proj-dir) | |
(run-process '(sh configure) | |
:wait #t | |
:directory proj-dir) | |
(run-process '(make) | |
:wait #t | |
:directory proj-dir) | |
(run-process '(make install) | |
:wait #t | |
:directory proj-dir))) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment