* Better FHS directory structure.
* Replace batch scripts with bare perl.
* Fix CPAN module installation.
* Fix links in HTML documentation.
* Update to Perl 5.20.
* Source code refactoring and update.
The locations below are now used for @INC. The /mingw*/lib directory is not
flooded anymore with perl libraries, they all reside now in the perl5 subfolder.
- lib/perl5/core_perl
- lib/perl5/site_perl
- lib/perl5/vendor_perl
Scripts such as perldoc and cpan are now bare perl scripts instead of batch
files, this allows using them directly from bash. Dmake now ignores the SHELL
environment variable, so unsetting it before dmake calls is not anymore needed.
This fixes CPAN module installation since dmake now understands the makefiles.
First run of cpan will not store full paths to external programs anymore, only
the program names. For example, 32-bit bzip2 will not be used under the 64-bit
shell. Dmake is now always selected as the make program, since GNU make doesn't
like the generated makefiles. HTML documentation uses a base directory for
links, this is now relocated on package installation so user can navigate
through the pages in web browser.
27 lines
732 B
Diff
27 lines
732 B
Diff
diff -aur 001/dmake.c 002/dmake.c
|
|
--- 001/dmake.c 2015-01-07 00:51:53.692179700 -0200
|
|
+++ 002/dmake.c 2015-01-07 03:30:31.966593800 -0200
|
|
@@ -81,6 +81,10 @@
|
|
#include "extern.h" /* this includes config.h */
|
|
#include "sysintf.h"
|
|
|
|
+#ifdef _WIN32
|
|
+#include <stdlib.h>
|
|
+#endif
|
|
+
|
|
#ifndef MSDOS
|
|
#define USAGE \
|
|
"Usage:\n%s [-P#] [-{f|K} file] [-{w|W} target ...] [macro[!][[*][+][:]]=value ...]\n"
|
|
@@ -144,6 +148,11 @@
|
|
*/
|
|
DB_ENTER("main");
|
|
|
|
+#ifdef _WIN32
|
|
+ /* The SHELL environment variable breaks dmake under MSYS2 */
|
|
+ _putenv_s("SHELL", "");
|
|
+#endif
|
|
+
|
|
/* Initialize Global variables to their default values */
|
|
Prolog(argc, argv);
|
|
/* Set internal macros to their initial values, some are changed
|