Skip to content

Commit

Permalink
Renamed ImageMagick config folder.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemstra committed Mar 31, 2024
1 parent a775f38 commit 18ff04e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Configure/Project.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ Project* Project::create(const ConfigureWizard &wizard,const wstring &configFold
wstring
configPath;

configPath=configFolder + L"\\" + name + L"\\ImageMagick";
configPath=configFolder + L"\\" + name + L"\\.ImageMagick";
config.open(pathFromRoot(configPath + L"\\Config.txt"));
if (!config)
{
Expand Down Expand Up @@ -553,12 +553,12 @@ void Project::setNoticeAndVersion()
versionFileName;

folder=filesystem::path(licenseFileName).parent_path();
versionFileName=folder.wstring()+L"\\ImageMagick\\ImageMagick.version.h";
versionFileName=folder.wstring()+L"\\.ImageMagick\\ImageMagick.version.h";
versionFile=filesystem::path(versionFileName).wstring();
if (!filesystem::exists(versionFile))
{
folder=folder.parent_path();
versionFileName=folder.wstring()+L"\\ImageMagick\\ImageMagick.version.h";
versionFileName=folder.wstring()+L"\\.ImageMagick\\ImageMagick.version.h";
versionFile=filesystem::path(versionFileName).wstring();
if (!filesystem::exists(versionFile))
throwException(L"Unable to find version file for: " + _name);
Expand Down
2 changes: 1 addition & 1 deletion Configure/Solution.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ void Solution::writeVersion(const VersionInfo &versionInfo) const

folderName=_wizard.magickCoreProjectName();
writeVersion(versionInfo,pathFromRoot(L"ImageMagick\\" + folderName + L"\\version.h.in"),pathFromRoot(L"ImageMagick\\" + folderName + L"\\version.h"));
filesystem::copy_file(pathFromRoot(L"ImageMagick\\" + folderName + L"\\version.h"),pathFromRoot(L"Build\\version.h"));
filesystem::copy_file(pathFromRoot(L"ImageMagick\\" + folderName + L"\\version.h"),pathFromRoot(L"Build\\version.h"),filesystem::copy_options::overwrite_existing);
writeVersion(versionInfo,pathFromRoot(L"ImageMagick\\config\\configure.xml.in"),pathFromRoot(_wizard.binDirectory() + L"configure.xml"));
writeVersion(versionInfo,pathFromRoot(L"Installer\\Inno\\inc\\version.isx.in"),pathFromRoot(L"Installer\\Inno\\inc\\version.isx"));
writeVersion(versionInfo,pathFromRoot(L"Projects\\utilities\\ImageMagick.version.h.in"),pathFromRoot(L"Projects\\utilities\\ImageMagick.version.h"));
Expand Down

0 comments on commit 18ff04e

Please sign in to comment.