Skip to content
Permalink
Browse files

Correct the path used to find configure.in

git-svn-id: http://svn.osgeo.org/qgis/trunk@5153 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux
timlinux committed Apr 4, 2006
1 parent fad314f commit 7e91f5682adcfc99eb334381ca39aa9887ef049d
Showing with 7 additions and 5 deletions.
  1. +7 −5 src/plugins/plugin_builder.pl
@@ -75,6 +75,8 @@
#
# 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");
# copy files to appropriate names
@@ -128,8 +130,8 @@
# Add an entry to qgis/configure.in
# Do we really want to do this or add a message telling the user how to do
# it?
open CONFIGUREIN, "<../configure.in" || die 'Unable to open ../configure.in';
open CONFIGUREINMOD, ">../configure.in.mod" || die 'Unable to create ../configure.in.mod';
open CONFIGUREIN, "<../../configure.in" || die 'Unable to open ../../configure.in';
open CONFIGUREINMOD, ">../../configure.in.mod" || die 'Unable to create ../../configure.in.mod';
# read through configure.in until we find the AC_CONFIG_FILES section
while(<CONFIGUREIN>){
if(/^\s*AC_CONFIG_FILES*/){
@@ -152,11 +154,11 @@
close CONFIGUREINMOD;

# save configure.in in case we die before done moving things around
system("mv ../configure.in ../configure.in.save");
system("mv ../../configure.in ../../configure.in.save");
# move the new configure.in to where it belongs
system("mv ../configure.in.mod ../configure.in");
system("mv ../../configure.in.mod ../../configure.in");
# delete the original configure.in
unlink("../configure.in.save");
unlink("../../configure.in.save");

# print out some end of processing info
print << "EOP";

0 comments on commit 7e91f56

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