Index: trunk/scconfig/Rev.h =================================================================== --- trunk/scconfig/Rev.h (revision 26259) +++ trunk/scconfig/Rev.h (revision 26260) @@ -1 +1 @@ -static const int myrev = 26253; +static const int myrev = 26260; Index: trunk/scconfig/Rev.tab =================================================================== --- trunk/scconfig/Rev.tab (revision 26259) +++ trunk/scconfig/Rev.tab (revision 26260) @@ -1,3 +1,4 @@ +26260 configure order: move wget to lib_wget for reuse 26253 configure hidlib: move hidlib-common dialogs from the dialogs plugin to lib_hid_common so other hidlib apps can benefit from them 26000 configure hildib: separate polygon generator funtions so they can be reused by hidlib apps 25853 configure new plugin for data access actions Index: trunk/scconfig/plugins.h =================================================================== --- trunk/scconfig/plugins.h (revision 26259) +++ trunk/scconfig/plugins.h (revision 26260) @@ -15,6 +15,7 @@ plugin_def("lib_netmap", "map nets and objects", sdisable, 0) plugin_def("lib_polyhelp", "polygon helpers", sbuildin, 1) plugin_def("lib_vfs", "fetch data for VFS export", sdisable, 0) +plugin_def("lib_wget", "wget(1) wrapper", sdisable, 0) plugin_header("\nFeature plugins:\n") plugin_def("acompnet", "net auto-completion", sdisable, 1) @@ -148,6 +149,7 @@ plugin_dep("export_xy", "export_bom", 0) plugin_dep("extedit", "io_lihata", 0) plugin_dep("fp_wget", "fp_fs", 0) +plugin_dep("fp_wget", "lib_wget", 0) plugin_dep("hid_gtk2_gdk", "lib_gtk_common", 01) plugin_dep("hid_gtk2_gdk", "lib_gtk_hid", 01) plugin_dep("hid_gtk2_gl", "lib_gtk_common", 01) Index: trunk/src_plugins/fp_wget/fp_wget.pup =================================================================== --- trunk/src_plugins/fp_wget/fp_wget.pup (revision 26259) +++ trunk/src_plugins/fp_wget/fp_wget.pup (revision 26260) @@ -5,4 +5,5 @@ $package cloud default buildin dep fp_fs +dep lib_wget autoload 1 Index: trunk/src_plugins/lib_wget/Makefile =================================================================== --- trunk/src_plugins/lib_wget/Makefile (nonexistent) +++ trunk/src_plugins/lib_wget/Makefile (revision 26260) @@ -0,0 +1,6 @@ +all: + cd ../../src && $(MAKE) mod_lib_wget + +clean: + rm *.o *.so 2>/dev/null ; true + Index: trunk/src_plugins/lib_wget/Plug.tmpasm =================================================================== --- trunk/src_plugins/lib_wget/Plug.tmpasm (nonexistent) +++ trunk/src_plugins/lib_wget/Plug.tmpasm (revision 26260) @@ -0,0 +1,10 @@ +put /local/pcb/mod {lib_wget} +put /local/pcb/mod/OBJS [@ + $(PLUGDIR)/lib_wget/lib_wget.o +@] + +switch /local/pcb/lib_wget/controls + case {buildin} include /local/pcb/tmpasm/buildin; end; + case {plugin} include /local/pcb/tmpasm/plugin; end; + case {disable} include /local/pcb/tmpasm/disable; end; +end Index: trunk/src_plugins/lib_wget/lib_wget.c =================================================================== --- trunk/src_plugins/lib_wget/lib_wget.c (nonexistent) +++ trunk/src_plugins/lib_wget/lib_wget.c (revision 26260) @@ -0,0 +1,46 @@ +/* + * COPYRIGHT + * + * pcb-rnd, interactive printed circuit board design + * Copyright (C) 2019 Tibor 'Igor2' Palinkas + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Contact: + * Project page: http://repo.hu/projects/pcb-rnd + * lead developer: http://repo.hu/projects/pcb-rnd/contact.html + * mailing list: pcb-rnd (at) list.repo.hu (send "subscribe") + */ + +#include "config.h" + +#include + +#include "pcb-printf.h" +#include "plugins.h" + + + +int pplg_check_ver_lib_wget(int ver_needed) { return 0; } + +void pplg_uninit_lib_wget(void) +{ +} + +int pplg_init_lib_wget(void) +{ + PCB_API_CHK_VER; + return 0; +} Index: trunk/src_plugins/lib_wget/lib_wget.h =================================================================== --- trunk/src_plugins/lib_wget/lib_wget.h (nonexistent) +++ trunk/src_plugins/lib_wget/lib_wget.h (revision 26260) @@ -0,0 +1,26 @@ +/* + * COPYRIGHT + * + * pcb-rnd, interactive printed circuit board design + * Copyright (C) 2019 Tibor 'Igor2' Palinkas + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Contact: + * Project page: http://repo.hu/projects/pcb-rnd + * lead developer: http://repo.hu/projects/pcb-rnd/contact.html + * mailing list: pcb-rnd (at) list.repo.hu (send "subscribe") + */ + Index: trunk/src_plugins/lib_wget/lib_wget.pup =================================================================== --- trunk/src_plugins/lib_wget/lib_wget.pup (nonexistent) +++ trunk/src_plugins/lib_wget/lib_wget.pup (revision 26260) @@ -0,0 +1,6 @@ +$class lib +$short wget(1) wrapper +$long retrieve files from the web using wget(1) +$state works +$package cloud +default disable-all Index: trunk/src_plugins/plugins_ALL.tmpasm =================================================================== --- trunk/src_plugins/plugins_ALL.tmpasm (revision 26259) +++ trunk/src_plugins/plugins_ALL.tmpasm (revision 26260) @@ -86,6 +86,7 @@ include {../src_plugins/lib_netmap/Plug.tmpasm} include {../src_plugins/lib_polyhelp/Plug.tmpasm} include {../src_plugins/lib_vfs/Plug.tmpasm} +include {../src_plugins/lib_wget/Plug.tmpasm} include {../src_plugins/loghid/Plug.tmpasm} include {../src_plugins/millpath/Plug.tmpasm} include {../src_plugins/mincut/Plug.tmpasm}