Commit Graph

47 Commits

Author SHA1 Message Date
Yury V. Zaytsev 482025a286 buildsys: prefer gnu indent (gindent) to bsd indent if available
BSD indent does not have `--gnu-style` flag ;-)

Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2024-06-02 12:49:13 +03:00
Evgeny Grin 68e6d960f8 Replaced unportable 'inplace' sed command
'-i' sed option is not portable, not specified by POSIX and does not
work on same platforms.
Replaced with simple and obvious workarounds.

Closes MidnightCommander/mc#184.

Signed-off-by: Karlson2k (Evgeny Grin) <k2k@narod.ru>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2023-05-20 19:57:23 +03:00
Andrew Borodin 89d8fa4ac1 Ticket #1: remove SMB suport.
The mc's built-in samba library which is used to access data across
smb links is taken from an old samba version.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2021-09-26 10:03:49 +03:00
Andrew Borodin 791acb4611 Ticket #4249: Autoreconf is failing with tarball prepared by make dist.
version.sh: move from maint/utils to the root of the source tree
and make it a part of distributable tarball.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2021-05-26 21:56:27 +03:00
Andrew Borodin 30480df7c9 Rename version.h to mc-version.h.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2021-04-11 16:58:31 +03:00
Andreas Mohr 631cf4f3bf Ticket #3986: tests: do not write parallel to logfile.
Since automake-1.12 (test-driver script) libcheck logfile is written
parallel by automake.
Print test logging to stdout and let write to logfile by automake only.

Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2021-02-07 20:58:45 +03:00
Sergei Trofimovich f30e6ff283 Ticket #3629: configure.ac: drop bundled gettext
Bundled libintl did not support linking to internal static
libraries (libmc in our case): directly specified static
libraries are not pulled by libtool and are not usable for
dynamic libraries as PIC-related flags are not passed for
compilation.

This renders bundled libintl library unusable.

The change drops libintl bundling support and always relies
on external libintl (or falls back to disabled NLS).

On a related note gettext-0.20 drops support for bundling
or libintl and this change will ease migration to newer version.

The change is tested on x86_64-gentoo-linux-musl: mc builds
and links all tests successfully. A few tests fail for lack
of NLS support.

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-09-22 13:10:46 +03:00
Slava Zanko 41f9b60a15 Add indent rule in makefile
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2013-11-25 13:47:39 +04:00
Slava Zanko c6e094f483 Added makefile's targets for run cppcheck
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2013-11-25 13:47:39 +04:00
Slava Zanko 1c6d859629 Reorder files in maint/ subdirectory.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2013-06-03 10:58:14 +03:00
Slava Zanko 034633a3c9 Avoided warning message about non-existent maint/version.sh file
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-09-09 12:01:56 +03:00
Slava Zanko d3bb9de01f Ticket 2570: Code cleanup
Moved tests from lib/tests to tests/lib directory

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-07-11 20:23:44 +03:00
Slava Zanko 630efbd59a Moved dir $(srcdir)/syntax into $(srcdir)/misc/syntax
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-01-26 10:30:21 +02:00
Slava Zanko 52f6bed7d0 Moved dir $(srcdir)/vfs into $(srcdir)/lib/vfs/mc-vfs
Also, initial support of library directory.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-01-26 10:30:21 +02:00
Slava Zanko 871991dda0 Ticket #1866: Move edit/ and vfs/ directories into src/
Moved dir $(srcdir)/edit into $(srcdir)/src/editor

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-01-26 10:30:19 +02:00
Slava Zanko f606e64861 Version of project now formed automatically from current git-describe output
* File version.h will be created (or changed) automatically
 * Fixed versions for rpm packages - all '-' changed to '.' in RPM_VERSION variable
 * when version.h is changed (or deleted) ./configure script will be invoked

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-06-07 00:56:07 +03:00
Slava Zanko f49ce170f0 Move some files from contrib into misc directory
Also fix error with make install action
2009-05-08 16:56:02 +03:00
Mikhail S. Pobolovets a55a505160 Move all stuff from lib to contrib
Also added template in contrib/distr for some distro-related files (spec, deb, ebuild, etc)
2009-05-08 15:12:48 +03:00
Enrico Weigelt, metux IT service 52897029dc mc.qpg.in mc.spec.in pkginfo.in prototype.in: moved to contrib/dist 2009-05-08 13:23:42 +03:00
Slava Zanko 0e6b076666 Remove autogenerated stuff from git-tracking.
* Remove m4/* files
 * Reorganize all M4-stuff into m4.include subdur
 * move doxygen-include.am into doc/doxygen-include.am
2009-05-07 15:38:06 +03:00
Slava Zanko c8dd6dbbfd Fix wildcard pattern in file select and file find dialogs 2009-05-07 12:53:59 +03:00
Enrico Weigelt, metux IT service 4f9185a3ee Removed bundled slang 2009-02-02 04:23:06 +01:00
Miguel de Icaza 5c8fbe00c6 Fix make distcheck 2005-06-06 09:49:32 +00:00
Andrew V. Samoilov abe4dddc99 New file. Configuration files for Sun Solaris pkgmk(1). 2005-05-31 03:20:43 +00:00
Andrew V. Samoilov 2ee7b81d94 * mc.qpg.in: New file. Description for QNX 6.x packager. 2004-09-28 11:48:57 +00:00
Pavel Roskin 7c0f20bcb8 * src/TODO: Move ...
* TODO: ... here.
* doc/DEVEL: Move ...
* HACKING: ... here.  Adjust makefiles.
2003-11-27 18:06:56 +00:00
Pavel Roskin 004cd5a23c Distribute the build scripts. 2003-11-20 19:58:02 +00:00
Pavel Roskin afbc365860 * configure.in: Define SLANG_POSIX_SIGNALS if all 4 required
functions are present.  Remove references to extraconf.h.
* extraconf.h: Eliminate.
* Makefile.am: Remove extraconf.h.
2003-10-29 08:15:32 +00:00
Pavel Roskin fe7d3b9a4e * pc: Remove. No work has been done on the PC post for years.
* README.PC: Likewise.
* Makefile.am: Adjust for the above.
* configure.in: Likewise.
2003-07-23 03:02:18 +00:00
Pavel Roskin cfcf9a76df * Makefile.am: Add m4 to SUBDIRS. Set ACLOCAL_AMFLAGS so that
m4 directory is used by aclocal.
* m4/Makefile.am: New file.
* configure.in: Substitute m4/Makefile.
* autogen.sh: Don't copy any macro files, use m4 directory.
2002-09-17 16:13:25 +00:00
Pavel Roskin d95635b074 * README.smbfs: Remove. It contained no useful information
and the webpage is now dead.
* Makefile.am: Remove README.smbfs.
2002-02-22 06:45:10 +00:00
Pavel Roskin 692f52ce8d * configure.in: Use three-argument form of AC_INIT. Use
AC_CONFIG_AUX_DIR.  Remove some unused or implied macros.
* Makefile.am (EXTRA_DIST): Remove "depcomp" - this workaround
is not needed if AC_CONFIG_AUX_DIR is used.
* vfs/Make-mc.in: Adjust mkinstalldirs location.
* autogen.sh: Create "config" and remove "autom4te.cache".
2001-09-12 19:18:38 +00:00
Pavel Roskin d5e1314c5d * configure.in: Require Autoconf 2.52. Remove hacks for
Autoconf 2.13.
* Makefile.am: Require Automake 1.5.
2001-09-07 04:25:02 +00:00
Pavel Roskin 773065de72 * Makefile.am (EXTRA_DIST): Add depcomp to work around a bug in
Automake 1.5.
2001-08-26 15:38:30 +00:00
Pavel Roskin d0c022f0ca * acinclude.m4: Include all used macros from the macros
directory.
* autogen.sh: Remove all references to "macros".
* Makefile.am: Likewise.
2001-08-24 20:30:05 +00:00
Pavel Roskin 621a8f2391 * configure.in: Remove all GNOME stuff except GNOME_VFS_CHECKS.
* Makefile.am (SUBDIRS): Remove all GNOME-related directories.
2001-08-24 18:48:19 +00:00
Pavel Roskin 15dafdb46d * Makefile.am (EXTRA_DIST): Remove BUGS.
* doc/Makefile.am (EXTRA_DIST): Remove LSM and FILES.
2001-08-10 08:24:15 +00:00
Pavel Roskin 45d7dee152 * Make.common.in (XCPPFLAGS): Don't add -I$(top_srcdir) - it's
now done in configure. Move -I.. to the beginning.
* Makefile.am (SUBDIRS): Move intl po to the beginning, since
libintl.a may be required to link mc.
(ACLOCAL_M4_SOURCES): Remove macros/gnome-gettext.m4.
* configure.in: Use AM_GNU_GETTEXT instead of AM_GNOME_GETTEXT.
Move all i18n code to one place. Don't substitute INTLSUB - it's
unused. Substitute INTLDEPS, since AM_GNU_GETTEXT doesn't do it.
Remove SCO-specific i18n hacks. Add -I$(top_srcdir) to CPPFLAGS.
2001-06-29 08:09:37 +00:00
Pavel Roskin 92e696864e * Makefile.am: Change the order of SUBDIRS to fully compile text
edition before compiling anything for GNOME.
* mc.spec.in: Don't use brace expansion to avoid implicit
build-time dependency on bash.
2001-06-17 03:10:23 +00:00
Pavel Roskin d888c7233e * acconfig.h: Move constant parts ...
* extraconf.h: ... here.
[HAVE_X]: Disable subshell, s-lang and curses.
* Makefile.am: Add extraconf.h.
2001-05-29 05:04:58 +00:00
Pavel Roskin 5f284d60a2 * Makefile.am (EXTRA_DIST): Remove create_vcs.
* doc/FILES: Likewise. Typo fix.
2001-05-20 06:11:10 +00:00
Pavel Roskin b49ab71bd1 * Makefile.am: GNOME_M4_FILES renamed to ACLOCAL_M4_SOURCES so
that CVS Automake will drop dependencied to the macros that
we don't distribute.
2000-10-10 01:28:03 +00:00
Pavel Roskin be82bd6a23 * Makefile.am: mc.spec included to noinst_DATA so that "make all"
updates it when needed.
        * mc.spec.in: Include translations with mc, not gmc. Run
        chkconfig --del in %preun, not %postun. --without-debug not
        needed. /etc/X11/wmconfig not needed. /etc/pam.d/mcserv shouldn't
        be executable. New files in %{prefix}/lib/mc/ - translated hints,
        editor files.
2000-09-23 17:24:08 +00:00
Pavel Roskin 6a4496612a * configure.in: use AM_GNOME_GETTEXT
* gettext.m4: removed
* Makefile.am: adjusted files to distribute, previous change
reverted
2000-08-29 21:23:44 +00:00
Pavel Roskin 57aed41219 * mc-aclocal.m4: renamed to ...
* acinclude.m4: ... this
* autogen.sh: simplified - no more tricks with mc-aclocal.m4
* Makefile.am: aclocal should scan "." for gettext.m4
2000-08-29 20:00:37 +00:00
Pavel Roskin 9c625de158 * icons/*: removed
* Makefile.am, configure.in: necessary adjustments
2000-08-24 18:47:36 +00:00
Pavel Roskin 0c81f3a1bf * Makefile.in, doc-gnome/Makefile.in, pc/Makefile: converted
to ...
* Makefile.am, doc-gnome/Makefile.am, pc/Makefile.am: ... this
* Make.common.in: support for "distdir" for compatability
with Automake-generated makefiles
* autogen.sh: run automake. Force cache - it is off by default
in autoconf 2.49a, but it's still handy for maintainers
* configure.in: adapted for Automake
2000-08-24 14:13:00 +00:00