Simon Wright <[email protected]> writes:

> On 29 Jun 2016, at 22:57, Stephen Leake <[email protected]> 
> wrote:
>
>> attached is a bash script and modified gpr_query.gpr to build and
>> install gpr_query from ~/.emacs.d/elpa/ada-mode-5.1.9.
>> 
>> Let me know if it works for you.
>
> Well, no, because uname returns Darwin!
>
> But we can use gprinstall to do the heavy lifting; 

arg. I remembered "gnatinstall"; but it's "gprinstall". Sigh.

>sudo gprinstall --mode=usage -P gpr_query.gpr, or just add this to
>gpr_query.gpr:
>
> --- build/gpr_query.gpr       6b9ac979b533f5dfc8533e7f86d6df5ec2cb0627
> +++ build/gpr_query.gpr       0e177d30a06766b7ff4b576f8722260071ed023c
> @@ -63,4 +63,8 @@ project Gpr_query is
>        for default_switches ("Ada") use ("-E"); -- symbolic traceback
>     end Binder;
>  
> +   package Install is
> +      for Mode use "usage";
> +   end Install;
> +
>  end Gpr_query;

done.

>
> (the alternative mode is "dev", which installs source files & updated project 
> files as well).
>
> Result:
>
> $ gprinstall --dry-run gpr_query.gpr 
> Install project Gpr_query
> cp /Users/simon/ada-mode-wisi-mtn/build/gpr_query /opt/gcc-6.1.0/bin/gpr_query

excellent. I'll add that to the user guide

-- 
-- Stephe

_______________________________________________
Emacs-ada-mode mailing list
[email protected]
http://host114.hostmonster.com/mailman/listinfo/emacs-ada-mode_stephe-leake.org

Reply via email to