Re: Fix recipe for CMake
"Lucas C. Villa Real" <[email protected]>
| Newsgroups | gmane.linux.distributions.gobo.general |
|---|---|
| Message-ID | <CAAvzgtYkA9bS8Z5frB6o7UWY=di5z=TOB4B1QzvU2oXyHk9rcw@mail.gmail.com> |
On Tue, Mar 29, 2016 at 9:25 PM, Hugo Barrocas <[email protected]> wrote: > Hi all, > > I made a NewVersion CMake 3.5.1 , but since it's based on the previous > outdated version, the recipe still has reference to: > > pre_install() { > if [ -d "/System/Index" ] > then > GrepReplace "$goboIndex" "$target" cmake_install.cmake > fi > } > > It still Compiled ok, but as a result, the new version RecipeLint > complaints about this: > ERROR: Recipe references /System tree explicitly. Use $<gobo > environment variable>. > > I have limited knowledge on programming :P > What is the best way to fix this recipe code? > Hi, Hugo, As a workaround, you could rewrite the test so that it reads: if [ ! -z "$goboIndex" -a -d "$goboIndex" ] That should keep RecipeLint happy. Lucas _______________________________________________ gobolinux-users mailing list [email protected] http://lists.gobolinux.org/mailman/listinfo/gobolinux-users