Skip to content

Commit a5f70d2

Browse files
author
timlinux
committed
Lower case plugin filenames as specified in todo item
Fix broken logic for appending plugin dir to Makefile.am git-svn-id: http://svn.osgeo.org/qgis/trunk@5155 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 4718d34 commit a5f70d2

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/plugins/plugin_builder.pl

+3-4
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
print "Plugin name: " ;
3030
$pluginName = <STDIN>;
3131
chop $pluginName;
32-
$pluginLCaseName = $pluginName; #todo convert to lower case
32+
$pluginLCaseName = lc($pluginName); #todo convert to lower case
3333

3434
print "\n\nEnter a short description (typically one line)\n";
3535
print "e.g. The clever plugin does clever stuff in QGIS\n";
@@ -108,10 +108,9 @@
108108
# read through Makefile.am and write each line to Makefile.am.mod
109109
while(<MAKEFILE>){
110110
if(/^\s*SUBDIRS =*/){
111-
# add our plugin dir to the SUBDIRS line
112-
chop;
111+
# add our plugin dir to the next line after SUBDIRS line
113112
print MAKEFILEMOD;
114-
print MAKEFILEMOD " $pluginDir\n";
113+
print MAKEFILEMOD "\t\t$pluginDir \\\n";
115114
}else{
116115
print MAKEFILEMOD;
117116
}

0 commit comments

Comments
 (0)