mirror of
https://github.com/janet-lang/janet
synced 2024-12-25 07:50:27 +00:00
Prefix MANPATH and PKG_CONFIG_PATH variables with JANET_ to disassociate with standard env variables that have a different format.
This commit is contained in:
parent
b4f5e5bc00
commit
3ba2c7e7e8
@ -21,6 +21,7 @@ All notable changes to this project will be documented in this file.
|
|||||||
- Add `repeat` macro for iterating something n times.
|
- Add `repeat` macro for iterating something n times.
|
||||||
- Add `eachy` (each yield) macro for iterating a fiber.
|
- Add `eachy` (each yield) macro for iterating a fiber.
|
||||||
- Fix `:generate` verb in loop macro to accept non symbols as bindings.
|
- Fix `:generate` verb in loop macro to accept non symbols as bindings.
|
||||||
|
- Add `:h`, `:h+`, and `:h*` in `default-peg-grammar` for hexidecimal digits.
|
||||||
- Fix `%j` formatter to print numbers precisely (using the `%.17g` format string to printf).
|
- Fix `%j` formatter to print numbers precisely (using the `%.17g` format string to printf).
|
||||||
|
|
||||||
## 1.10.1 - 2020-06-18
|
## 1.10.1 - 2020-06-18
|
||||||
|
20
Makefile
20
Makefile
@ -33,8 +33,8 @@ JANET_TARGET=build/janet
|
|||||||
JANET_LIBRARY=build/libjanet.so
|
JANET_LIBRARY=build/libjanet.so
|
||||||
JANET_STATIC_LIBRARY=build/libjanet.a
|
JANET_STATIC_LIBRARY=build/libjanet.a
|
||||||
JANET_PATH?=$(LIBDIR)/janet
|
JANET_PATH?=$(LIBDIR)/janet
|
||||||
MANPATH?=$(PREFIX)/share/man/man1/
|
JANET_MANPATH?=$(PREFIX)/share/man/man1/
|
||||||
PKG_CONFIG_PATH?=$(LIBDIR)/pkgconfig
|
JANET_PKG_CONFIG_PATH?=$(LIBDIR)/pkgconfig
|
||||||
DEBUGGER=gdb
|
DEBUGGER=gdb
|
||||||
SONAME_SETTER=-Wl,-soname,
|
SONAME_SETTER=-Wl,-soname,
|
||||||
|
|
||||||
@ -272,11 +272,11 @@ install: $(JANET_TARGET) build/janet.pc build/jpm
|
|||||||
ln -sf $(SONAME) '$(DESTDIR)$(LIBDIR)/libjanet.so'
|
ln -sf $(SONAME) '$(DESTDIR)$(LIBDIR)/libjanet.so'
|
||||||
ln -sf libjanet.so.$(shell $(JANET_TARGET) -e '(print janet/version)') $(DESTDIR)$(LIBDIR)/$(SONAME)
|
ln -sf libjanet.so.$(shell $(JANET_TARGET) -e '(print janet/version)') $(DESTDIR)$(LIBDIR)/$(SONAME)
|
||||||
cp -rf build/jpm '$(DESTDIR)$(BINDIR)'
|
cp -rf build/jpm '$(DESTDIR)$(BINDIR)'
|
||||||
mkdir -p '$(DESTDIR)$(MANPATH)'
|
mkdir -p '$(DESTDIR)$(JANET_MANPATH)'
|
||||||
cp janet.1 '$(DESTDIR)$(MANPATH)'
|
cp janet.1 '$(DESTDIR)$(JANET_MANPATH)'
|
||||||
cp jpm.1 '$(DESTDIR)$(MANPATH)'
|
cp jpm.1 '$(DESTDIR)$(JANET_MANPATH)'
|
||||||
mkdir -p '$(DESTDIR)$(PKG_CONFIG_PATH)'
|
mkdir -p '$(DESTDIR)$(JANET_PKG_CONFIG_PATH)'
|
||||||
cp build/janet.pc '$(DESTDIR)$(PKG_CONFIG_PATH)/janet.pc'
|
cp build/janet.pc '$(DESTDIR)$(JANET_PKG_CONFIG_PATH)/janet.pc'
|
||||||
[ -z '$(DESTDIR)' ] && $(LDCONFIG) || true
|
[ -z '$(DESTDIR)' ] && $(LDCONFIG) || true
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
@ -284,9 +284,9 @@ uninstall:
|
|||||||
-rm '$(DESTDIR)$(BINDIR)/jpm'
|
-rm '$(DESTDIR)$(BINDIR)/jpm'
|
||||||
-rm -rf '$(DESTDIR)$(INCLUDEDIR)/janet'
|
-rm -rf '$(DESTDIR)$(INCLUDEDIR)/janet'
|
||||||
-rm -rf '$(DESTDIR)$(LIBDIR)'/libjanet.*
|
-rm -rf '$(DESTDIR)$(LIBDIR)'/libjanet.*
|
||||||
-rm '$(DESTDIR)$(PKG_CONFIG_PATH)/janet.pc'
|
-rm '$(DESTDIR)$(JANET_PKG_CONFIG_PATH)/janet.pc'
|
||||||
-rm '$(DESTDIR)$(MANPATH)/janet.1'
|
-rm '$(DESTDIR)$(JANET_MANPATH)/janet.1'
|
||||||
-rm '$(DESTDIR)$(MANPATH)/jpm.1'
|
-rm '$(DESTDIR)$(JANET_MANPATH)/jpm.1'
|
||||||
# -rm -rf '$(DESTDIR)$(JANET_PATH)'/* - err on the side of correctness here
|
# -rm -rf '$(DESTDIR)$(JANET_PATH)'/* - err on the side of correctness here
|
||||||
|
|
||||||
#################
|
#################
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
project('janet', 'c',
|
project('janet', 'c',
|
||||||
default_options : ['c_std=c99', 'b_lundef=false', 'default_library=both'],
|
default_options : ['c_std=c99', 'b_lundef=false', 'default_library=both'],
|
||||||
version : '1.10.2')
|
version : '1.11.0')
|
||||||
|
|
||||||
# Global settings
|
# Global settings
|
||||||
janet_path = join_paths(get_option('prefix'), get_option('libdir'), 'janet')
|
janet_path = join_paths(get_option('prefix'), get_option('libdir'), 'janet')
|
||||||
|
@ -383,13 +383,17 @@
|
|||||||
[i start stop step comparison delta body]
|
[i start stop step comparison delta body]
|
||||||
(with-syms [s]
|
(with-syms [s]
|
||||||
(def st (if (idempotent? step) step (gensym)))
|
(def st (if (idempotent? step) step (gensym)))
|
||||||
|
(def loop-body
|
||||||
|
~(while (,comparison ,i ,s)
|
||||||
|
,;body
|
||||||
|
(set ,i (,delta ,i ,st))))
|
||||||
~(do
|
~(do
|
||||||
(var ,i ,start)
|
(var ,i ,start)
|
||||||
(def ,s ,stop)
|
(def ,s ,stop)
|
||||||
,;(if (= st step) [] [~(def ,st ,step)])
|
,;(if (= st step) [] [~(def ,st ,step)])
|
||||||
(while (,comparison ,i ,s)
|
,(if (and (number? st) (> st 0))
|
||||||
,;body
|
loop-body
|
||||||
(set ,i (,delta ,i ,st))))))
|
~(if (,> ,st 0) ,loop-body)))))
|
||||||
|
|
||||||
(defn- for-template
|
(defn- for-template
|
||||||
[binding start stop step comparison delta body]
|
[binding start stop step comparison delta body]
|
||||||
|
@ -27,10 +27,10 @@
|
|||||||
#define JANETCONF_H
|
#define JANETCONF_H
|
||||||
|
|
||||||
#define JANET_VERSION_MAJOR 1
|
#define JANET_VERSION_MAJOR 1
|
||||||
#define JANET_VERSION_MINOR 10
|
#define JANET_VERSION_MINOR 11
|
||||||
#define JANET_VERSION_PATCH 2
|
#define JANET_VERSION_PATCH 0
|
||||||
#define JANET_VERSION_EXTRA "-dev"
|
#define JANET_VERSION_EXTRA ""
|
||||||
#define JANET_VERSION "1.10.2-dev"
|
#define JANET_VERSION "1.11.0"
|
||||||
|
|
||||||
/* #define JANET_BUILD "local" */
|
/* #define JANET_BUILD "local" */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user