Skip to content
Permalink
Browse files

Further updates to plugin builder. Still need to resolve a makefile i…

…ssue.

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5156 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux
timlinux committed Apr 4, 2006
1 parent 159f959 commit b9840d9e5be88129854a7daf3359c6d777b4ea70
Showing with 8 additions and 10 deletions.
  1. +8 −10 src/plugins/plugin_builder.pl
@@ -74,17 +74,15 @@
# its a go -- create the plugin and modify the build files
#
# create the new plugin directory
system("cp -r plugin_template $pluginDir");
# remove the README file
system("rm -rf $pluginDir/README");
# remove the subversion directory
system("rm -rf $pluginDir/.svn");
system("mkdir $pluginDir");
# copy files to appropriate names
system("cp $pluginDir/plugin.cpp $pluginDir/$pluginLCaseName.cpp");
system("cp $pluginDir/plugin.h $pluginDir/$pluginLCaseName.h");
#todo sort out copying these next items properly
system("cp $pluginDir/pluginbase.cpp $pluginDir/$pluginLCaseName.cpp");
system("cp $pluginDir/plugin.cpp $pluginDir/$pluginLCaseName.cpp");
system("cp plugin_template/Makefile.am $pluginDir/");
system("cp plugin_template/plugin.cpp $pluginDir/$pluginLCaseName.cpp");
system("cp plugin_template/plugin.h $pluginDir/$pluginLCaseName.h");
system("cp plugin_template/plugingui.cpp $pluginDir/${pluginLCaseName}gui.cpp");
system("cp plugin_template/plugingui.h $pluginDir/${pluginLCaseName}gui.h");
system("cp plugin_template/pluginguibase.ui $pluginDir/${pluginLCaseName}guibase.ui");
system("cp plugin_template/pluginguibase.ui.h $pluginDir/${pluginLCaseName}guibase.ui.h");

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

0 comments on commit b9840d9

Please sign in to comment.
You can’t perform that action at this time.