Move "ng" deprecation warning to stderr to increase visibility

This commit is contained in:
Jason Perkins 2013-01-17 13:20:05 -05:00
parent b1c5e0dd20
commit e0f0537aa2

View File

@ -1,7 +1,7 @@
--
-- _premake_main.lua
-- Script-side entry point for the main program logic.
-- Copyright (c) 2002-2012 Jason Perkins and the Premake project
-- Copyright (c) 2002-2013 Jason Perkins and the Premake project
--
@ -39,7 +39,7 @@
-- The "next-gen" actions have now replaced their deprecated counterparts.
-- Provide a warning for a little while before I remove them entirely.
if _ACTION and _ACTION:endswith("ng") then
print(string.format("** Warning: '%s' has been deprecated; use '%s' instead", _ACTION, _ACTION:sub(1, -3)))
io.stderr:write(string.format("** Warning: '%s' has been deprecated; use '%s' instead\n", _ACTION, _ACTION:sub(1, -3)))
end
-- Set up the environment for the chosen action early, so side-effects