> -----Original Message----- > From: lua-l-boun...@lists.lua.org [mailto:lua-l-boun...@lists.lua.org] On > Behalf Of Thijs Schreijer > Sent: maandag 20 januari 2014 14:18 > To: 'Lua mailing list' > Subject: variables for rockspec > > I created an SCM rockspec containing this code; > > > local tag = "master" > > source = { > > url = "http://github.com/Tieske/rpi-gpio/archive/"..tag..".zip", > > dir = "rpi-gpio-"..tag, > > } > > This obvoiously always fetches the `master` branch. > > Question: is there a way I could set this up so I could pass the name of the > branch on the luarocks command line? > > Something like; > > local tag = cmdln.vars.branch or "master" > > source = { > > url = "http://github.com/Tieske/rpi-gpio/archive/"..tag..".zip", > > dir = "rpi-gpio-"..tag, > > } > > And then use something like; > > Sudo luarocks install https://path/to/rockspec branch=newdevelopment > > To get the 'newdevelopment' branch installed. > > Thx. > Thijs >
No response, so I guess is not available now. I could create a patch for it. Just wondering whether it would be best to pass all VAR=VALUE elements from the commandline, or apply a specific switch like --branch=branchname any ideas or comments? Thijs ------------------------------------------------------------------------------ CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments & Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk _______________________________________________ Luarocks-developers mailing list Luarocks-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/luarocks-developers