Skip to content

Commit

Permalink
Correct the path used to find configure.in
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@5153 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Apr 4, 2006
1 parent fad314f commit 7e91f56
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/plugins/plugin_builder.pl
Expand Up @@ -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
Expand Down Expand Up @@ -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*/){
Expand All @@ -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";
Expand Down

0 comments on commit 7e91f56

Please sign in to comment.