1 From 96576b44a1b368bd6590eb0778ae45cc9ccede3f Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
3 Date: Fri, 21 Jun 2019 14:08:38 +0200
4 Subject: [PATCH] include version number
6 Including it allows multiple lua versions to coexist.
8 Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
11 diff --git a/Makefile b/Makefile
14 @@ -12,7 +12,7 @@ PLAT= none
15 # LUA_ROOT, LUA_LDIR, and LUA_CDIR in luaconf.h.
16 INSTALL_TOP= /usr/local
17 INSTALL_BIN= $(INSTALL_TOP)/bin
18 -INSTALL_INC= $(INSTALL_TOP)/include
19 +INSTALL_INC= $(INSTALL_TOP)/include/lua$V
20 INSTALL_LIB= $(INSTALL_TOP)/lib
21 INSTALL_MAN= $(INSTALL_TOP)/man/man1
22 INSTALL_LMOD= $(INSTALL_TOP)/share/lua/$V
23 @@ -39,10 +39,10 @@ RM= rm -f
24 PLATS= aix bsd c89 freebsd generic linux macosx mingw posix solaris
29 TO_INC= lua.h luaconf.h lualib.h lauxlib.h lua.hpp
33 +TO_MAN= lua$V.1 luac$V.1
35 # Lua version and release.
37 diff --git a/doc/lua.1 b/doc/lua5.3.1
39 rename to doc/lua5.3.1
40 diff --git a/doc/luac.1 b/doc/luac5.3.1
41 rename from doc/luac.1
42 rename to doc/luac5.3.1
43 diff --git a/src/Makefile b/src/Makefile
46 @@ -28,7 +28,7 @@ MYOBJS=
48 PLATS= aix bsd c89 freebsd generic linux macosx mingw posix solaris
52 CORE_O= lapi.o lcode.o lctype.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o \
53 lmem.o lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o \
54 ltm.o lundump.o lvm.o lzio.o
55 @@ -36,10 +36,10 @@ LIB_O= lauxlib.o lbaselib.o lbitlib.o lc
56 lmathlib.o loslib.o lstrlib.o ltablib.o lutf8lib.o loadlib.o linit.o
57 BASE_O= $(CORE_O) $(LIB_O) $(MYOBJS)
67 ALL_O= $(BASE_O) $(LUA_O) $(LUAC_O)