| 1 |
;;; |
| 2 |
;;; Generate buildinfo.c |
| 3 |
;;; |
| 4 |
;;; This script should be executed by BUILD_GOSH |
| 5 |
;;; |
| 6 |
|
| 7 |
(use gauche.cgen) |
| 8 |
|
| 9 |
(cgen-current-unit |
| 10 |
(make <cgen-unit> |
| 11 |
:name "buildinfo" |
| 12 |
:preamble "/* Generated from autoloads.scm. DO NOT EDIT */\ |
| 13 |
\n /* To be included from core.c */" |
| 14 |
:init-prologue "" |
| 15 |
:init-epilogue "" |
| 16 |
)) |
| 17 |
|
| 18 |
(define (main args) |
| 19 |
(cgen-decl "static const char *build_gosh_version = " |
| 20 |
(cgen-safe-string (gauche-version)) |
| 21 |
";") |
| 22 |
(cgen-emit-c (cgen-current-unit)) |
| 23 |
0) |