How to Install NDMerge
NDMerge is automatically installed in the Next Design installation folder when Next Design is installed.
If you want to use NDMerge without installing Next Design, please install it using the following procedure.
Because Git settings are saved per user, perform this procedure for each user who will use NDMerge.
Installation Procedure
Git (the git command) must be installed before performing the following procedure.
- Windows version
- Linux version
-
This program requires .NET 10.0 Runtime to run.
If Next Design is not installed, download and install the runtime. (If Next Design is installed, the runtime is already installed.) -
Download the NDMerge file set (zip file) from the support site below.
After downloading the zip file, please remove the security protection as follows before extracting the files.
(1) Right-click the zip file and select [Properties].
(2) Read the explanation for [Security] at the bottom of the [General] tab, check the [Allow] checkbox on the right, and click the [OK] button.
-
Extract the zip file to your desired installation folder.
-
In the following command, replace
<installation folder>with the path to the folder where NDMerge was extracted. Launch Terminal, navigate to that folder, and execute the command:cd "<installation folder>"
.\ndmerge git-setup install
For details on this command, please refer to here.
- Download the NDMerge file set (zip file) from the support site below.
-
Extract the zip file to your desired installation folder.
-
In the following commands, replace
<installation folder>with the path to the folder where NDMerge was extracted. Navigate to that folder and execute the commands:cd "<installation folder>"
chmod +x ndmerge
./ndmerge git-setup install
For details on this command, please refer to here.
Post-Installation Verification
-
Executing the
ndmerge git-setup installcommand configures thegitconfigfor the global environment (per OS login user). -
You can verify the configured settings by running the following command in the installation folder:
./ndmerge git-setup list
-
If the
merge.NDMerge.driveritem is added to the configuration, it is configured correctly. -
Example of execution on Windows
> ./ndmerge git-setup list
exec: git config merge.NDMerge.name
nd diff merge application
exec: git config merge.NDMerge.driver
'[Absolute path for each user environment]/ndmerge.exe' merge -o %A -t %B -b %O -m %A -p %P -l warn
- If the path set in
gitconfigand the location of the storage folder are different,NDMergewill not work.
If you move the storage folder, run thendmerge git-setup installcommand again to update thegitconfigsettings.
Configuring Git attributes
Configure the file extensions in the Git attributes file so that NDMerge runs when Git needs to merge the target files.
- Windows version
- Linux version
-
To edit the configuration file, open
cmd.exeand execute the following command.for /f "delims=" %F in ('git var GIT_ATTR_GLOBAL') do (mkdir "%~dpF" 2>nul & notepad "%~fF") -
Append the following configuration lines to the file. If these configuration lines are already present, there is no need to append them.
# NDMerge
*.nproj merge=NDMerge
*.nmdl merge=NDMerge
*.nprof merge=NDMerge
*.iproj merge=NDMerge
*.imdl merge=NDMerge
*.iprof merge=NDMerge -
Confirm that the encoding is set to UTF-8, and save the file.
-
Execute the following command to check the contents of the attributes file.
git_attributes_file="$(git var GIT_ATTR_GLOBAL)"
cat "$git_attributes_file"If the attributes file does not exist, an error is displayed, but this is not a problem.
-
If the NDMerge configuration lines are not present in the output, execute the following command to append them. If these configuration lines are already present, there is no need to append them.
git_attributes_file="$(git var GIT_ATTR_GLOBAL)"
mkdir -p "$(dirname "$git_attributes_file")"
cat <<'EOF' >> "$git_attributes_file"
# NDMerge
*.nproj merge=NDMerge
*.nmdl merge=NDMerge
*.nprof merge=NDMerge
*.iproj merge=NDMerge
*.imdl merge=NDMerge
*.iprof merge=NDMerge
EOF
Update Procedure
If NDMerge is already installed, follow these steps to update to the new version of NDMerge.
- Windows version
- Linux version
- Download the complete set of NDMerge files (zip file) for the new version from the support site below.
After downloading the zip file, remove the security protection as follows before extracting the files.
(1) Right-click the zip file and select [Properties].
(2) Read the explanation of [Security] displayed at the bottom of the [General] tab, check the [Allow] checkbox on the right, and click the [OK] button.
- Delete all existing files in the installation folder.
- Extract the new version's zip file to the installation folder.
- Launch Terminal and navigate to the installation folder.
- Run the following command to confirm that you have updated to the new version.
.\ndmerge --version
- Download the complete NDMerge file set (zip file) for the new version from the support site below.
- Delete all existing files in the installation folder.
- Extract the new version's zip file to the installation folder.
- Navigate to the installation folder and run the following command.
chmod +x ndmerge
- Run the following command to confirm that you have updated to the new version.
./ndmerge --version
Uninstallation Procedure
-
Open a terminal and navigate to the
NDMergeinstallation folder. -
Execute the following command:
./ndmerge git-setup uninstall
- Execute the following command to check the path of the user-global attributes file referenced by Git.
git var GIT_ATTR_GLOBAL
Open the output file in a text editor and delete the NDMerge-related lines added in Configuring Git attributes.
- Delete all files in the installation folder.