changeset 1648:224af797b1f9

Mainly small install script improvements - Consistent usage of `$LUANHOME`, removed reliance on current directory. - Made Luan build and install fine (on Linux) without requiring launching it via sudo. Only asks to elevate privileges if installation failed. - Minor spelling mistake fix.
author Fox
date Mon, 28 Mar 2022 18:00:12 +0200
parents 7eddf1e990c0
children f7e2df85fc0a
files scripts/build-luan.sh scripts/install.sh src/luan/modules/http/Http.luan
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/build-luan.sh	Tue Mar 22 09:00:59 2022 -0700
+++ b/scripts/build-luan.sh	Mon Mar 28 18:00:12 2022 +0200
@@ -9,7 +9,7 @@
 
 find . -name *.class -delete
 
-. classpath.sh
+. $LUANHOME/classpath.sh
 
 cd $LUANHOME/src
 javac -classpath $CLASSPATH `find . -name *.java`
@@ -28,6 +28,6 @@
 VERSION=`java -classpath $CLASSPATH luan.Luan classpath:luan/version.luan`
 tar -cf luan-$VERSION.tar luan
 
-luan/install.sh
+luan/install.sh || sudo luan/install.sh
 
 echo done
--- a/src/luan/modules/http/Http.luan	Tue Mar 22 09:00:59 2022 -0700
+++ b/src/luan/modules/http/Http.luan	Mon Mar 28 18:00:12 2022 +0200
@@ -200,7 +200,7 @@
 	local call = Http.error_priority(e)
 	local err = e.get_stack_trace_string()
 	logger[call](err.."\n"..trim(java_request.rawHead).."\n")
-	local msg = "Internel Server Error\n\n"..err
+	local msg = "Internal Server Error\n\n"..err
 	return Response.errorResponse( Status.INTERNAL_SERVER_ERROR, msg )
 end