Skip to content

Commit d350790

Browse files
author
timlinux
committed
Further updates to plugin builder. Still need to resolve a makefile issue.
git-svn-id: http://svn.osgeo.org/qgis/trunk@5156 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent a5f70d2 commit d350790

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

src/plugins/plugin_builder.pl

+8-10
Original file line numberDiff line numberDiff line change
@@ -74,17 +74,15 @@
7474
# its a go -- create the plugin and modify the build files
7575
#
7676
# create the new plugin directory
77-
system("cp -r plugin_template $pluginDir");
78-
# remove the README file
79-
system("rm -rf $pluginDir/README");
80-
# remove the subversion directory
81-
system("rm -rf $pluginDir/.svn");
77+
system("mkdir $pluginDir");
8278
# copy files to appropriate names
83-
system("cp $pluginDir/plugin.cpp $pluginDir/$pluginLCaseName.cpp");
84-
system("cp $pluginDir/plugin.h $pluginDir/$pluginLCaseName.h");
85-
#todo sort out copying these next items properly
86-
system("cp $pluginDir/pluginbase.cpp $pluginDir/$pluginLCaseName.cpp");
87-
system("cp $pluginDir/plugin.cpp $pluginDir/$pluginLCaseName.cpp");
79+
system("cp plugin_template/Makefile.am $pluginDir/");
80+
system("cp plugin_template/plugin.cpp $pluginDir/$pluginLCaseName.cpp");
81+
system("cp plugin_template/plugin.h $pluginDir/$pluginLCaseName.h");
82+
system("cp plugin_template/plugingui.cpp $pluginDir/${pluginLCaseName}gui.cpp");
83+
system("cp plugin_template/plugingui.h $pluginDir/${pluginLCaseName}gui.h");
84+
system("cp plugin_template/pluginguibase.ui $pluginDir/${pluginLCaseName}guibase.ui");
85+
system("cp plugin_template/pluginguibase.ui.h $pluginDir/${pluginLCaseName}guibase.ui.h");
8886

8987
# Substitute the plugin specific vars in the various files
9088
# This is a brute force approach but its quick and dirty :)

0 commit comments

Comments
 (0)