adding notes on bumping the version number.
This commit is contained in:
parent
6598c4d0d1
commit
68d2881d7d
5
Makefile
5
Makefile
|
@ -1,9 +1,12 @@
|
|||
# test-analyzer:
|
||||
# raco make -v --disable-inline test-analyzer.rkt
|
||||
# racket test-analyzer.rkt
|
||||
all: planet-link launcher setup
|
||||
all: bump-version planet-link launcher setup
|
||||
|
||||
|
||||
bump-version:
|
||||
racket bump-version.rkt
|
||||
|
||||
launcher:
|
||||
racket make-launcher.rkt
|
||||
|
||||
|
|
20
bump-version.rkt
Normal file
20
bump-version.rkt
Normal file
|
@ -0,0 +1,20 @@
|
|||
#lang racket/base
|
||||
|
||||
(require racket/runtime-path
|
||||
racket/port
|
||||
racket/list)
|
||||
|
||||
(define-runtime-path version.rkt "version.rkt")
|
||||
|
||||
(define version-text (call-with-input-file version.rkt port->string))
|
||||
|
||||
(define revised-text (regexp-replace #px"\\.(\\d+)"
|
||||
version-text
|
||||
(lambda (whole sub)
|
||||
(string-append
|
||||
"."
|
||||
(number->string
|
||||
(add1 (string->number sub)))))))
|
||||
|
||||
(call-with-output-file version.rkt (lambda (op) (display revised-text op))
|
||||
#:exists 'replace)
|
|
@ -1,4 +1,9 @@
|
|||
#lang typed/racket/base
|
||||
|
||||
;; This is an internal version string. It should have no external meaning.
|
||||
;; This file is touched by "bump.version.rkt": do not edit this file manually unless
|
||||
;; you really know what you're doing.
|
||||
|
||||
(provide version)
|
||||
(: version String)
|
||||
(define version "1.0")
|
||||
(define version "1.5")
|
||||
|
|
Loading…
Reference in New Issue
Block a user