Skip to content

Instantly share code, notes, and snippets.

@ayato-p
Created May 21, 2013 15:07
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ayato-p/5620540 to your computer and use it in GitHub Desktop.
Save ayato-p/5620540 to your computer and use it in GitHub Desktop.
GaucheのHEADをMakeするスクリプト
(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