mirror of
https://github.com/Doodle3D/doodle3d-firmware.git
synced 2025-04-16 16:30:46 +02:00
Publish script comments update
This commit is contained in:
parent
fd1a428aea
commit
bd5a304504
@ -7,15 +7,23 @@
|
|||||||
--
|
--
|
||||||
-- USAGE:
|
-- USAGE:
|
||||||
-- The only dependency of this script are the penlight and luafilesystem libraries, which can be installed using
|
-- The only dependency of this script are the penlight and luafilesystem libraries, which can be installed using
|
||||||
-- LuaRocks (http://luarocks.org/) as follows:
|
-- LuaRocks (http://luarocks.org/) as follows:
|
||||||
-- sudo luarocks install penlight
|
-- $ sudo luarocks install penlight
|
||||||
-- If the penlight libary is not found you might need to add the following to /etc/launchd.conf
|
-- If the penlight libary is not found you might need to add the following to /etc/launchd.conf
|
||||||
-- setenv LUA_CPATH /opt/local/share/luarocks/lib/lua/5.2/?.so
|
-- setenv LUA_CPATH /opt/local/share/luarocks/lib/lua/5.2/?.so
|
||||||
-- setenv LUA_PATH /opt/local/share/luarocks/share/lua/5.2/?.lua
|
-- setenv LUA_PATH /opt/local/share/luarocks/share/lua/5.2/?.lua
|
||||||
-- Reboot
|
-- Reboot
|
||||||
-- Also see: https://github.com/keplerproject/luarocks/wiki/Using-LuaRocks#rocks-trees-and-the-lua-libraries-path
|
-- Also see: https://github.com/keplerproject/luarocks/wiki/Using-LuaRocks#rocks-trees-and-the-lua-libraries-path
|
||||||
--
|
--
|
||||||
-- This script will automatically locate the Doodle3D repo's.
|
-- Lua + Luarocks installation on Linux:
|
||||||
|
-- $ sudo apt-get install lua5.2 liblua5.2-dev
|
||||||
|
-- # Build Luarocks from source, configured for lua 5.2:
|
||||||
|
-- $ wget http://luarocks.org/releases/luarocks-2.2.2.tar.gz
|
||||||
|
-- $ tar zxpf luarocks-2.2.2.tar.gz
|
||||||
|
-- $ cd luarocks-2.2.2
|
||||||
|
-- $ ./configure --lua-version=5.2
|
||||||
|
-- $ sudo make bootstrap
|
||||||
|
-- This script will automatically locate the Doodle3D repo's.
|
||||||
-- Index files are fetched from the online repository.
|
-- Index files are fetched from the online repository.
|
||||||
-- For synchronizing, rsync must have passwordless SSH access to the server, for a
|
-- For synchronizing, rsync must have passwordless SSH access to the server, for a
|
||||||
-- guide, see: http://www.linuxproblem.org/art_9.html.
|
-- guide, see: http://www.linuxproblem.org/art_9.html.
|
||||||
@ -27,8 +35,8 @@
|
|||||||
-- HostName ftp.greenhost.nl
|
-- HostName ftp.greenhost.nl
|
||||||
-- Some basic sanity checks are built in (unique version, updated release notes, 'clean' openwrt config)
|
-- Some basic sanity checks are built in (unique version, updated release notes, 'clean' openwrt config)
|
||||||
-- but lots others are still missing (mainly: clean git repo's, freshly built images).
|
-- but lots others are still missing (mainly: clean git repo's, freshly built images).
|
||||||
-- The script must be run from within the openwrt build root. So it's handy to create a symlink
|
-- The script must be run from within the openwrt build root. So it's handy to create a symlink
|
||||||
-- to this file. You could to something like from the build root:
|
-- to this file. You could to something like from the build root:
|
||||||
-- ln -s ~/wrt-wifibox-feed/doodle3d-firmware/extra/scripts/publish-wifibox-release.lua .
|
-- ln -s ~/wrt-wifibox-feed/doodle3d-firmware/extra/scripts/publish-wifibox-release.lua .
|
||||||
-- Then you can start with:
|
-- Then you can start with:
|
||||||
-- cd trunk ../publish-wifibox-release.lua
|
-- cd trunk ../publish-wifibox-release.lua
|
||||||
@ -158,9 +166,9 @@ local function fileExists(path)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local function detectBuildroot()
|
local function detectBuildroot()
|
||||||
if not fileExists("customfeeds") or not fileExists("bin") then
|
if not fileExists("customfeeds") or not fileExists("bin") then
|
||||||
return false
|
return false
|
||||||
else
|
else
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -454,7 +462,7 @@ local function main()
|
|||||||
print("Error: could not collect local version information (" .. msg .. ")")
|
print("Error: could not collect local version information (" .. msg .. ")")
|
||||||
quit(3)
|
quit(3)
|
||||||
end
|
end
|
||||||
|
|
||||||
local stables,betas = fetchVersionInfo()
|
local stables,betas = fetchVersionInfo()
|
||||||
if not stables then
|
if not stables then
|
||||||
print("Error: could not get version information (" .. betas .. ")")
|
print("Error: could not get version information (" .. betas .. ")")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user