Skip to content

Commit

Permalink
Release 1.0.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
technomancy committed Nov 14, 2021
1 parent a11d365 commit 8d3c1c7
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 449 deletions.
20 changes: 14 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ BIN_DIR ?= $(PREFIX)/bin
LUA_LIB_DIR ?= $(PREFIX)/share/lua/$(LUA_VERSION)
MAN_DIR ?= $(PREFIX)/man/man1

LIB_SRC=src/fennel.fnl src/fennel/friend.fnl src/fennel/parser.fnl \
src/fennel/specials.fnl src/fennel/utils.fnl src/fennel/view.fnl \
src/fennel/compiler.fnl src/fennel/macros.fnl src/fennel/repl.fnl
MINI_SRC=src/fennel.fnl src/fennel/parser.fnl src/fennel/specials.fnl \
src/fennel/utils.fnl src/fennel/compiler.fnl src/fennel/macros.fnl

LIB_SRC=$(MINI_SRC) src/fennel/friend.fnl src/fennel/view.fnl src/fennel/repl.fnl

SRC=$(LIB_SRC) src/launcher.fnl src/fennel/binary.fnl

Expand All @@ -30,7 +31,7 @@ fuzz: fennel.lua
$(LUA) test/init.lua fuzz

# older versions of cloc might need --force-lang=lisp
count: ; cloc $(LIB_SRC) ; cloc $(SRC)
count: ; cloc $(MINI_SRC); cloc $(LIB_SRC) ; cloc $(SRC)

# install https://git.sr.ht/~technomancy/fnlfmt manually for this:
format: ; for f in $(SRC); do fnlfmt --fix $$f ; done
Expand All @@ -49,9 +50,9 @@ fennel.lua: $(SRC)
$(LAUNCHER) --no-metadata --require-as-include --compile $< > $@

# A lighter version of the compiler that excludes some features; experimental.
minifennel.lua: $(SRC) fennel
minifennel.lua: $(MINI_SRC) fennel
./fennel --no-metadata --require-as-include --add-fennel-path src/?.fnl \
--skip-include fennel.repl,fennel.view,fennel.friend \
--skip-include fennel.repl,fennel.view,fennel.friend --no-compiler-sandbox \
--compile $< > $@

lint:
Expand Down Expand Up @@ -151,6 +152,8 @@ uploadrock: rockspecs/fennel-$(VERSION)-1.rockspec uploadtar
$(HOME)/.luarocks/bin/fennel --version | grep $(VERSION)
luarocks --local remove fennel

SSH_KEY ?= ~/.ssh/id_rsa

uploadtar: fennel fennel-x86_64 fennel.exe fennel-arm32 fennel.tar.gz
mkdir -p downloads/
mv fennel downloads/fennel-$(VERSION)
Expand All @@ -163,6 +166,11 @@ uploadtar: fennel fennel-x86_64 fennel.exe fennel-arm32 fennel.tar.gz
gpg -ab downloads/fennel-$(VERSION)-windows32.exe
gpg -ab downloads/fennel-$(VERSION)-arm32
gpg -ab downloads/fennel-$(VERSION).tar.gz
ssh-keygen -Y sign -f $(SSH_KEY) -n file downloads/fennel-$(VERSION)
ssh-keygen -Y sign -f $(SSH_KEY) -n file downloads/fennel-$(VERSION)-x86_64
ssh-keygen -Y sign -f $(SSH_KEY) -n file downloads/fennel-$(VERSION)-windows32.exe
ssh-keygen -Y sign -f $(SSH_KEY) -n file downloads/fennel-$(VERSION)-arm32
ssh-keygen -Y sign -f $(SSH_KEY) -n file downloads/fennel-$(VERSION).tar.gz
rsync -rtAv downloads/ [email protected]:fennel-lang.org/downloads/

release: uploadtar uploadrock
Expand Down
5 changes: 3 additions & 2 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

Changes are **marked in bold** which could result in backwards-incompatibility.

## 1.0.0 / ???
## 1.0.0 / 2021-11-14

### New Features
* Support implicit `values` in `collect` when given two body arguments
* Allow `collect` to take two body arguments instead of requiring `values`
* Support `--rename-native-module` when compiling binaries
* Add `:into` clause to `collect` and `icollect`
* Add Macro guide
Expand All @@ -25,6 +25,7 @@ Changes are **marked in bold** which could result in backwards-incompatibility.
* Fix a bug where `let` locals escaped their scope at the top level of the repl

### Changes and Removals
* **Remove** `fennelview.lua` from the repo as it is part of the main API now
* **Remove `doc`** special form; replace with `,doc` repl command
* Compiler plugins will warn when run on a version they do not support
* Backslash followed by a literal newline in a string is now parsed as newline
Expand Down
Loading

0 comments on commit 8d3c1c7

Please sign in to comment.