all repos — hex @ 93b22ac1d6c46aa9b29ae234cbfddbaf1fa26ccc

A tiny, minimalist, slightly-esoteric concatenative programming lannguage.

Merge branch 'master' of github.com:h3rald/hex
h3rald h3rald@h3rald.com
Mon, 02 Dec 2024 11:08:26 +0000
commit

93b22ac1d6c46aa9b29ae234cbfddbaf1fa26ccc

parent

bdf08a358162c99d39af89eff9868ddc72fb1d49

3 files changed, 4 insertions(+), 3 deletions(-)

jump to
M .gitignore.gitignore

@@ -44,7 +44,6 @@ *.pdb

# Kernel Module Compile Results *.mod* -*.cmd .tmp_versions/ modules.order Module.symvers
A build.cmd

@@ -0,0 +1,2 @@

+gcc -Wall -Wextra -g hex.c -o hex.exe +emcc -sASYNCIFY -sEXPORTED_RUNTIME_METHODS=stringToUTF8 hex.c -o web/assets/hex.js --pre-js web/assets/hex-playground.js
M web.hexweb.hex

@@ -22,7 +22,7 @@ t_page read "{{content}}" content replace "new_content" store

(fn_content "home.html" ==) (d_out "/index.html" cat "dst_file" store) ( - ("mkdir -p " d_out "/" id_content) () map "" join exec + ("sh -c \"mkdir -p " d_out "/" id_content "\"") () map "" exec (d_out id_content "index.html") () map "/" join "dst_file" store ) if

@@ -31,7 +31,7 @@ new_content dst_file write

) each ; Write assets -("mkdir -p " d_out "/assets") () map "" join exec +("sh -c \"mkdir -p " d_out "/assets\"") () map "" join exec assets ( "fn_asset" store