Added more Fun to htdocs/info.fun. (0.37.33)
This commit is contained in:
parent
83281bf2de
commit
e6b9bd7488
4 changed files with 9 additions and 3 deletions
|
|
@ -1,5 +1,5 @@
|
|||
cmake_minimum_required(VERSION 3.10)
|
||||
project(fun VERSION 0.37.32 LANGUAGES C)
|
||||
project(fun VERSION 0.37.33 LANGUAGES C)
|
||||
|
||||
set(CMAKE_C_STANDARD 99)
|
||||
set(CMAKE_C_STANDARD_REQUIRED ON)
|
||||
|
|
|
|||
|
|
@ -16,7 +16,10 @@ print("<h1>Fun Environment Information</h1>")
|
|||
print("<p><strong>Current Path:</strong> " + env("PATH") + "</p>")
|
||||
print("<p><strong>Current User:</strong> " + env("USER") + "</p>")
|
||||
print("<p><strong>Time:</strong> " + date_format(time_now_ms(), "%Y-%m-%d %H:%M:%S") + "</p>")
|
||||
print("<p><strong>Version:</strong> " + to_string(fun_version()) + "</p>")
|
||||
print("<p><strong>Local Version:</strong> " + to_string(fun_version()) + "</p>")
|
||||
res = proc_run("fun -V")
|
||||
installed_version = res["out"]
|
||||
print("<p><strong>Installed Version:</strong> " + to_string(substr(installed_version, 4, len(installed_version)-2)) + "</p>")
|
||||
print("<h2>Full Environment:</h2>")
|
||||
print("<ul>")
|
||||
all_env = env_all()
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@ class HTTPServer(number port)
|
|||
env_vars = "QUERY_STRING='" + query_string + "' "
|
||||
if (len(post_data) > 0)
|
||||
env_vars = env_vars + "POST_DATA='" + post_data + "' "
|
||||
|
||||
|
||||
res = proc_run(env_vars + " " + "fun" + " " + file_path)
|
||||
content = res["out"]
|
||||
else
|
||||
|
|
|
|||
3
make
3
make
|
|
@ -100,6 +100,8 @@ elif [ "$target" = "freebsd" ]; then
|
|||
-DFUN_LINK_STATIC=OFF \
|
||||
-DFUN_DEBUG=OFF \
|
||||
&& cmake --build build --target fun
|
||||
elif [ "$target" = "install" ]; then
|
||||
sudo cmake --build build --target install
|
||||
elif [ "$target" = "minimal" ]; then
|
||||
rm -rf build \
|
||||
&& cmake -S . -B build \
|
||||
|
|
@ -159,6 +161,7 @@ else
|
|||
echo " - alpine";
|
||||
echo " - debug";
|
||||
echo " - freebsd";
|
||||
echo " - install";
|
||||
echo " - minimal";
|
||||
echo " - musl";
|
||||
echo " - repl";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue