[OpenVMS, HP GNV] Latest Linux diff and patch available on OpenVMS
PRODUCT: Linux patch Version 2.6.1 Linux diffutils Version 3.2 HP GNV Version 2.3-1 or above HP C Version 7.2-022 Either MMK Version 4.1 or HP MMS Version 3.8-2
OP/SYS: OpenVMS IA64 Version 8.3-1H1
COMPONENT: sources differences and automatic patching Linux style diff and patch
SOURCE: Philippe Vouters Fontainebleau/France
LOW-COST HIGH-TECH: http://techno-star.fr
OVERVIEW: These Linux diff and patch ports onto OpenVMS enable to obtain a diff file which contains source differences between an original and a modified file or scanning recursively inside two directories to diff all source files. In any case it is a one to one difference. The output of the diff utility may be used as an input to the patch utility which accordingly modifies all relevant source files. As an example of use and inside your company, you will be able to benefit from any patch from your Linux, HP-UX or Windows/MinGW/Cygwin colleagues on company common software projects using the patch utility. The same you may submit them your own patches. All this in a close teamwork. Outside your company you will be able to share your code changes with the Opensource developer using diff. In turn you may as well benefit from the latest Opensource code fixes using patch.
*** CAUTION *** These diff and patch utilities have been built and tested using HP GNV V2.1.3, HP C V7.2-022 and MMS V3.8-2 on OpenVMS V7.3-1H1. However, we cannot guarantee their effectiveness because of the possibility of error in transmitting or implementing them. They are meant to be used as a template for writing your own utilities, and may require modification for use on your system.
DOWNLOAD: Download HP GNV from this URL link: http://h71000.www7.hp.com/opensource/gnv.html Download diffutils-3.2.tar.gz sources from: http://ftp.gnu.org/gnu/diffutils/diffutils-3.2.tar.gz To get the patch utility sources, download ../zip/patch-2.6.1.tar.gz To get the diffutils patch for OpenVMS servers, download ../zip/diffutils-3.2.diff.tar.gz If you neither have MMS nor MMK installed, download MMK from: http://www.kednos.com/kednos/Open_Source/MMK
BUILDING THE TWO UTILITIES ON YOUR OPENVMS SYSTEM: Step 1: Install HP GNV using $ product install DCL command If you only run MMK, set this global symbol prior to activating bash: $ mms :== "''MMK'" Step 2: $ bash bash$ gnutar -zxvf patch-2.6.1.tar.gz bash$ cd patch-2.6.1 bash$ make -f Makefile_vms install bash$ cd .. bash$ gnutar -zxvf diffutils-3.2.tar.gz bash$ gnutar -zxvf diffutils-3.2.diff.tar.gz bash$ patch -p1 -d diffutils-3.2/ < diffutils-3.2.diff bash$ cd diffutils-3.2 bash$ dcl @diffutils-build.com bash$ cd .. bash$
PROGRAM NOTES: To produce a diff file such as performed in the Linux world: bash$ diff -au oldfile newfile > file.diff or to diff recursively two directories bash$ diff -Naur old-dir/ newdir/ > file.diff To patch using a diff file: bash$ patch -p0 [/path/to/file] < file.diff or to patch recursively a directory bash$ patch -p1 -d original-dir/ < file.diff
OPENVMS HINTS: These two utilities are installed into /usr/bin. So if you set the DCL$PATH logical as a search list containing "GNU:[usr.bin]", you would then be able to use diff and patch from the DCL prompt.
REFERENCE(S): Linux diff and patch mans