Edit

kc3-lang/kc3/update_sources

Branch :

  • Show log

    Commit

  • Author : thodg Thomas de Grivel
    Date : 2025-01-21 21:25:13
    Hash : e13294cb
    Message : New in KC3 v0.1.14 - pretty printer - auto indent KC3 code - map - `access` - `get` (get key value) - `put` (return a new map) - struct - `access` - `get` - `put` - facts database (triple store) accessible from KC3 - `new database (Ptr)` - `add_tags` - `collect_with` - `collect_with_tags` - `remove_tags` - `with_tags` - `with` - `with_macro` - HTTPd v0.2.0 - dynamic pages (MVC) - models are defined in `./app/models/` - controllers are defined in `./app/controllers/` - templates are defined in `./app/templates/` - views are defined in `./app/views/` - dynamic router is defined in `./config/router.kc3` - For now we don't match request method and just match the start of the URL with `Str.starts_with?(url, route.path)` - If there is no route or no controller or the controller does not return a HTTP response, a 404 error is returned. Other frameworks like Ruby on Rails or Phoenix do return a 500... - threads - `env_fork_init` - `env_fork_clean` - `Thread.new(fn)` - fx v0.2.0 - file explorer - preview files - text - image - video - audio - binary (hexdump -C) - properties - create - POST "/properties/*path" - delete - DELETE "/properties/*path

  • update_sources
  • #!/bin/sh
    set -e
    
    . ./config.subr
    
    echo "$PWD/update_sources"
    
    echo "# sources.mk generated by update_sources" > ${SOURCES_MK}
    echo "# sources.sh generated by update_sources" > ${SOURCES_SH}
    
    KC3_CONFIGURES="$(find ekc3 event fs gtk4 http httpd ikc3 json kc3c kc3s libkc3 markdown smtp socket window libtommath test ucd2c -name configure -or -name update_sources -or -name sources.sh)"
    sources KC3_CONFIGURES "$KC3_CONFIGURES"
    
    KC3_MAKEFILES="$(find ekc3 event fs gtk4 http httpd ikc3 json kc3c kc3s libkc3 markdown smtp socket window libtommath test ucd2c -name Makefile -or -name gen.mk -or -name sources.mk)"
    KC3_MAKEFILES="$(echo "$KC3_MAKEFILES" | grep -v 'libtommath/logs/Makefile')"
    sources KC3_MAKEFILES "$KC3_MAKEFILES"
    
    KC3_C_SOURCES="$(find ekc3 event fs gtk4 http httpd ikc3 json kc3c kc3s libkc3 markdown smtp socket window test -name "[a-z]*.c" -or -name "[a-z]*.h" -or -name "[a-z]*.c.in" -or -name "[a-z]*.h.in")"
    KC3_C_SOURCES="$(echo "${KC3_C_SOURCES}" | grep -Ev '/config[.]h$')"
    KC3_C_SOURCES="$KC3_C_SOURCES
    ucd2c/ucd.h
    ucd2c/ucd2c.c"
    sources KC3_C_SOURCES "$KC3_C_SOURCES"
    
    KC3_CXX_SOURCES="$(find ekc3 event fs gtk4 http httpd ikc3 json kc3c kc3s libkc3 markdown smtp socket window test -name "[a-z]*.cxx" -or -name "[a-z]*.hxx" -or -name "[a-z]*.cxx.in" -or -name "[a-z]*.hxx.in")"
    sources KC3_CXX_SOURCES "$KC3_CXX_SOURCES"
    
    KC3_FONT_SOURCES="$(find fonts -name '*.otf' -or -name '*.ttf')"
    sources KC3_FONT_SOURCES "$KC3_FONT_SOURCES"
    
    KC3_HTTPD_SOURCES="$(find httpd -name '*.ekc3' -or -name '*.facts' -or -name '*.kc3' -or -name 'mime.types')"
    sources KC3_HTTPD_SOURCES "$KC3_HTTPD_SOURCES"
    
    KC3_IMG_SOURCES="$(find img -name '*.png' -or -name '*.jpg' -or -name '*.jpeg' -or -name '*.xcf')"
    sources KC3_IMG_SOURCES "$KC3_IMG_SOURCES"
    
    KC3_LIB_SOURCES="$(find lib -name '*.facts' -or -name '*.kc3')"
    sources KC3_LIB_SOURCES "$KC3_LIB_SOURCES"
    
    KC3_OBJC_SOURCES="$(find window -name "[a-z]*.m" -or -name "[a-z]*.m.in")"
    sources KC3_OBJC_SOURCES "$KC3_OBJC_SOURCES"
    
    KC3_TEST_SOURCES="$(ls test/*.facts test/*.rb)
    test/zero"
    sources KC3_TEST_SOURCES "$KC3_TEST_SOURCES"
    
    KC3_TEST_IKC3_SOURCES="$(ls test/ikc3/*.expected test/ikc3/*.kc3 test/ikc3/*.lisp)
    test/ikc3_test"
    sources KC3_TEST_IKC3_SOURCES "$KC3_TEST_IKC3_SOURCES"
    
    KC3_TEST_EKC3_SOURCES="$(ls test/ekc3/*.ekc3 test/ekc3/*.expected test/ekc3/*.kc3)
    test/ekc3_test"
    sources KC3_TEST_EKC3_SOURCES "$KC3_TEST_EKC3_SOURCES"
    
    KC3_TEST_HTTP_SOURCES="$(ls test/http/*.expected test/http/*.kc3)
    test/http_test"
    sources KC3_TEST_HTTP_SOURCES "$KC3_TEST_HTTP_SOURCES"
    
    KC3_TEST_HTTPD_SOURCES="$(find test/httpd/app test/httpd/config test/httpd/db -name '*.ekc3' -or -name '*.kc3' -or -name '*.facts' -or -name mime.types)
    $(ls test/httpd/assets/package*.json)
    $(find test/httpd/assets/js -name '*.js')
    $(find test/httpd/assets/css -name '*.scss')
    $(find test/httpd/static)
    $(find test/httpd/pages)
    test/httpd/doc"
    sources KC3_TEST_HTTPD_SOURCES "$KC3_TEST_HTTPD_SOURCES"
    
    KC3_OTHER_SOURCES="$(ls *.md)
    Makefile
    config.subr
    configure
    env
    kc3.index
    kc3.version
    license.h
    sources.mk
    sources.sh
    $(find libkc3 -name '*.rb')"
    sources KC3_OTHER_SOURCES "$KC3_OTHER_SOURCES"
    
    KC3_EXTERNAL_SOURCES="$(find libtommath linenoise -name '*.[ch]')
    libtommath/LICENSE
    libtommath/README.md
    linenoise/LICENSE
    linenoise/README.markdown
    ucd2c/UCD.zip
    $(find ucd2c/UCD -type f)"
    sources KC3_EXTERNAL_SOURCES "$KC3_EXTERNAL_SOURCES"
    
    KC3_DOC_SOURCES="$(find doc -name '*.md')"
    sources KC3_DOC_SOURCES "$KC3_DOC_SOURCES"
    
    update_sources_mk
    update_sources_sh
    
    ( cd libtommath && ./update_sources; )
    ( cd libkc3     && ./update_sources; )
    ( cd ikc3       && ./update_sources; )
    ( cd kc3s       && ./update_sources; )
    ( cd ekc3       && ./update_sources; )
    ( cd event      && ./update_sources; )
    ( cd json       && ./update_sources; )
    ( cd markdown   && ./update_sources; )
    ( cd smtp       && ./update_sources; )
    ( cd socket     && ./update_sources; )
    ( cd http       && ./update_sources; )
    ( cd httpd      && ./update_sources; )
    ( cd test       && ./update_sources; )
    ( cd window     && ./update_sources; )
    ( cd gtk4       && ./update_sources; )
    ( cd fs         && ./update_sources; )