Index: trunk/scconfig/Rev.h =================================================================== --- trunk/scconfig/Rev.h (revision 32186) +++ trunk/scconfig/Rev.h (revision 32187) @@ -1 +1 @@ -static const int myrev = 32181; +static const int myrev = 32187; Index: trunk/scconfig/Rev.tab =================================================================== --- trunk/scconfig/Rev.tab (revision 32186) +++ trunk/scconfig/Rev.tab (revision 32187) @@ -1,4 +1,4 @@ -32181 configure librnd: infra for menu patching +32187 configure librnd: infra for menu patching 32169 configure hid_lesstif is part of the hidlib 32120 configure removing the old drc in favor of drc_query 32113 configure removing custom per hid attribute editor in favor of generic central propedit Index: trunk/scconfig/template/plugin_intmenu.tmpasm =================================================================== --- trunk/scconfig/template/plugin_intmenu.tmpasm (nonexistent) +++ trunk/scconfig/template/plugin_intmenu.tmpasm (revision 32187) @@ -0,0 +1,31 @@ +# Set up internal embedde dconfig +# Input: /local/pcb/mod/MENUFILE is the file name of the conf file (without path) +# /local/pcb/mod/MENUVAR is the variable name to use in menu_internal.c + +switch ?/local/pcb/mod/MENUFILE +case {...} +put /local/pcb/MMENU [@$(PLUGDIR)/@/local/pcb/mod@/@/local/pcb/mod/MENUFILE@@] +put /local/pcb/IMENU [@$(PLUGDIR)/@/local/pcb/mod@/menu_internal.c@] + +append /local/pcb/DEPDEPS [@ @/local/pcb/IMENU@ @] +append /local/pcb/DISTCLEANFILES [@ @/local/pcb/IMENU@ @] +append /local/pcb/RULES [@ +@/local/pcb/IMENU@: @/local/pcb/MMENU@ $(CQUOTE) + $(CQUOTE) -n @/local/pcb/mod/MENUVAR@ < @/local/pcb/MMENU@ > @/local/pcb/IMENU@ +@] + + +# plugin menu exists only as internal for now +#switch /local/pcb/mod/enabled +# case {1} +# append /local/pcb/rules/install_ [@ +# $(SCCBOX) $(HOW) "@/local/pcb/MMENU@" "$(CONFDIR)/@/local/pcb/mod/MENUFILE@"@] +# end +# default end; +#end + +end +default +end +end + Index: trunk/src/Makefile.in =================================================================== --- trunk/src/Makefile.in (revision 32186) +++ trunk/src/Makefile.in (revision 32187) @@ -297,6 +297,7 @@ put /local/pcb/tmpasm/plugin_sphash {../scconfig/template/plugin_sphash.tmpasm} put /local/pcb/tmpasm/plugin_conf {../scconfig/template/plugin_conf.tmpasm} put /local/pcb/tmpasm/plugin_intconf {../scconfig/template/plugin_intconf.tmpasm} +put /local/pcb/tmpasm/plugin_intmenu {../scconfig/template/plugin_intmenu.tmpasm} include {../src_plugins/plugins_ALL.tmpasm} Index: trunk/src_plugins/Common_enabled.tmpasm =================================================================== --- trunk/src_plugins/Common_enabled.tmpasm (revision 32186) +++ trunk/src_plugins/Common_enabled.tmpasm (revision 32187) @@ -122,6 +122,7 @@ include /local/pcb/tmpasm/plugin_conf include /local/pcb/tmpasm/plugin_sphash include /local/pcb/tmpasm/plugin_intconf +include /local/pcb/tmpasm/plugin_intmenu append /local/pcb/CLEANFILES ?/local/pcb/mod/CLEANFILES append /local/pcb/DISTCLEANFILES ?/local/pcb/mod/DISTCLEANFILES @@ -142,3 +143,5 @@ put /local/pcb/mod {} put /local/pcb/mod/CONFFILE {} put /local/pcb/mod/CONFVAR {} +put /local/pcb/mod/MENUFILE {} +put /local/pcb/mod/MENUVAR {}