Le 02/05/2012 06:54, Bruce Bruen a écrit : > Hi folks! > > (I'm getting pretty excited about the packager now.) > > > Benoît, > > Please consider this little change for the autotools packager code in > the IDE. > > We use a lot of common images in our projects. Corporate identity etc > etc blah blah... Rather than have copies of all these in the projects > we symbolic link them in. (So we only have one set of images to manage > not lots!) > > Unfortunately, the links created in the IDE are relative to the project > directory, e.g. PHlogo.png would be linked in referencing something > like "../../common/images/logos/paddys-hill/PHlogo.png" > > When the project is copied to the temporary build dir in the packaging > process, these links are now incorrect. > > The following diff (also attached) corrects this by adding the L option > to the cp command so that symbolic links are snapped. > > Index: Package.module > =================================================================== > --- Package.module (revision 4702) > +++ Package.module (working copy) > @@ -1383,7 +1383,7 @@ > Try sCmd = Scan(Project.GetCompileCommand(True, Not > Project.KeepDebugInfo, False), "*/bin/gbc"& System.Version& " *")[1] > > 'Mkdir sBuildDir&/ Project.Name > - Shell "cp -r "& Shell$(Project.Dir)& " "& Shell$(sBuildDir&/ > Project.Name) Wait > + Shell "cp -rL "& Shell$(Project.Dir)& " "& Shell$(sBuildDir&/ > Project.Name) Wait > sFile = Replace(File.Load("install/acinclude.m4"), "$(VERSION)", > CStr(System.Version)) > sFile = Replace(sFile, "$(PACKAGE_VERSION)", $sVersion) > sFile = Replace(sFile, "$(EXTRA_TEST)", Project.ExtraAutoconfTest) > > > regards > Bruce >
OK, done. -- Benoît Minisini ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user