Commit Graph

34 Commits

Author SHA1 Message Date
Iustin Pop
e8e6d543de Release version 1.7 2023-04-20 23:23:56 +02:00
Iustin Pop
52a6c218b9 Release bugfix version 1.6 😅 2023-04-19 23:33:02 +02:00
Iustin Pop
4a72962872 Finish the test migration to shelltest
The shelltest migration was done in 1.4, but not completed - the
distcheck was still doing hard-coded manual tests, and as such, the
"check" target from the dist archive was not working. Sigh.

Now 'distcheck' is using 'check', and the archive is complete.
2023-04-19 23:29:58 +02:00
Iustin Pop
c49c863a2a Release version 1.5 2023-04-19 22:59:23 +02:00
Iustin Pop
e96400b602 Make sure that make clean removes coverage info
I spent 20 minutes trying to understand why lcov/gcov were complaining
about wrong coverage format/version, before I saw I had a 2 year old
file that was not overwritten nor removed…
2023-04-18 21:34:04 +02:00
Iustin Pop
886ce1f261 Switch 'make check' to be done via shelltestrunner
The embedding of tests in the Makefile works only for that is there
today - a few `--version` and `stinit -p` calls. For expanding the
test coverage, as much as it can be done for `mt`, let's use a proper
shell test runner. `shelltestrunner` is available in Debian/Ubuntu, so
it's likely to be available in other distributions too, and as such
should not be a big barrier to contribution.
2021-06-06 01:46:03 +02:00
Iustin Pop
1743522b8a Add a local coverage target
This needs lcov installed, but it's a good quick helper for local
runs. For history and pull requests, codecov keeps tracking.

Also tweak in the process gitignore to clean the noise.
2021-06-06 00:11:35 +02:00
Iustin Pop
5a88467b88 Create a make check target
This is the exact same mini-"tests" that are used in distcheck, but
separated so that the tests can be run with coverage tracking. Would
be good not to have duplicates - maybe use make check inside the
distcheck?
2021-06-05 23:41:47 +02:00
Iustin Pop
ae2907fdd6 Update changelog and bump version for 1.4 release 2020-08-30 11:43:29 +02:00
Paweł Marciniak
639ece4580 Rename mt-st to mt-st.bash_completion 2020-07-19 18:00:04 +02:00
Paweł Marciniak
a109c716d8 Add BASH auto completion 2020-07-19 18:00:04 +02:00
Dan Horák
e0e9792238 use a variable for the install tool 2020-06-30 22:32:18 +02:00
Dan Horák
72575e6bf0 don't strip binaries on installation 2020-06-30 22:32:18 +02:00
Iustin Pop
66f36f2ba8 Add test for valid mode parsing result
While fixing #14, what pointed me to check parsing validity (and not
local issues as I thought at first) was that `-v -v` was showing empty
mode definitions, despite claiming parse success. So let's add a test
that mode parsing does do things, not just empty claims.
2019-10-13 20:22:46 +02:00
Iustin Pop
14a9ca5df4 LARGE CHURN: reindent source code
The source code seems to have, over time, become less self-consistent
in style. In order to not have to keep this up manually, switch over
indenting to clang-format. A .clang-format file is provided to give
repeatable results.

The main difference is switching from tabs to non-tabs
usage. Otherwise the changes are mostly minor and leading to more
consistency. Contributions to the format style welcome!

Nota bene: this should have had no code impact. Any actual code
changes (beyond indenting) are bugs in the re-indent process.
2016-05-06 21:54:34 +02:00
Iustin Pop
04a929ee3b Bump version to 1.3 and update changelog 2016-05-02 01:39:05 +02:00
Iustin Pop
5842bbac64 Check the supplied stinit.def file in distcheck 2016-05-02 01:27:12 +02:00
Iustin Pop
d7939d48ca Explicitly remove the old archive in make dist
Currently it's implicitly removed by `tar c`, but that's not nice.
2016-05-01 04:26:37 +02:00
Iustin Pop
396cf8d0db Turn on strict error checks during distcheck
This would have found earlier things such as issue #6, and since it's
only done in distcheck, doesn't impact normal users (for whom
`-Werror` is a bit too strict).
2016-05-01 04:24:43 +02:00
Iustin Pop
3421b4d92a Expand distcheck test to check for installed files
This would have prevented issue #4.
2016-05-01 04:03:21 +02:00
Iustin Pop
948c3e649a Remove obsolete -c option to install
This is in reference to issue #4, which was fixed differently by
recent patch.
2016-05-01 03:34:18 +02:00
Iustin Pop
bf3520374f Allow installing the binaries under /usr/
This patch reworks the directory-related variables to allow
installation of binaries under `/usr/[s]bin`, instead of directly
under `/[s]bin`. It also allows installing the man pages under a
different prefix (e.g. `/usr/local`).

Example:

    $ make install EXEC_PREFIX=/usr

will install binaries under `/usr/bin`, respectively `/usr/sbin`. A
full "local" installation under `/usr/local` is accomplished by:

    $ make install EXEC_PREFIX=/usr/local PREFIX=/usr/local

This patch points once again that an autoconf/automake conversion
would make a lot of sense…

Closes #3. Additionally, it fixes a previous bug with installation of
the manual pages.
2016-05-01 03:25:59 +02:00
Iustin Pop
75644f8ccd Allow configuring the default tape device at build time
Also adds displaying it in the version output, and moves this (the
show version code) into a separate function.
2016-05-01 03:00:32 +02:00
Iustin Pop
ea0031fe07 Add a release tag Makefile target 2016-02-07 21:00:18 +01:00
Iustin Pop
07b1f56b5a Remove no-longer-used qic117.h header file
It seems the need for this went away in version 1.1 (according to the
changelog), so let's drop the file.
2016-02-07 20:42:40 +01:00
Iustin Pop
0ee3591e51 Rework the dist target and drop LSM file
Short of moving to autotools, this is the best that can be done:

- move the version from hardcoded in the .c files, to a
  dynamically-built `version.h` file so that we only declare the
  version in one place
- build a better dist file (.tar.gz) by explicitly selecting which
  files to copy, instead of unbounded recursion from the source
  directory
- ensure that the files being copied to the archive have a sane
  user/group and mode
- add a distcheck target that simply reuses the archive to build and
  run the programs, and then regenerate the archive from itself

autotools would solve all this by default, but still feels too
heavyweight for just two .c files.

Additionall, drop the .lsm file. It seems mostly useless these days;
I'll be happy to reinstate it however if anyone cares.
2016-02-07 20:38:27 +01:00
Iustin Pop
05f1232982 Simple tweak to the Makefile to support DESTDIR
Wondering whether full autoconf/automake is worth for these two simple
tools, probably not.
2016-02-04 21:46:45 +01:00
Iustin Pop
af10994fc0 Small Makefile simplification 2015-05-29 10:42:55 +02:00
Iustin Pop
b943c10fe7 Pass preprocessor flags as well in the Makefile
This allows better hardening of the binary (e.g. in Debian, hardening
flags include pre-processor flags).
2015-05-29 10:35:04 +02:00
Iustin Pop
6fd7c41012 Restore the default value for CFLAGS
Commit 0ca6864 changed CFLAGS to be taken from the environment, but
without using any default value. This patch restores the old CFLAGS
value as the default one.
2015-05-20 10:41:17 +02:00
Ivo De Decker
0ca68642de Use CFLAGS and LDFLAGS from environment
Note: this is a patch originating from the Debian packaging.
2015-05-20 10:39:22 +02:00
Kai Mäkisara
c232ed0dd2 Backdated import of mt-st version 1.1
This is an import of the mt-st upstream release 1.1 as it appeared in
the Debian archives and on ftp://ftp.ibiblio.org/pub/linux/system/backup.
2015-05-16 17:46:05 +02:00
Kai Mäkisara
11875969cd Backdated import of mt-st version 0.8
This is an import of the mt-st upstream release 0.8 as it appeared in
the Debian archives.
2015-05-16 17:33:19 +02:00
Kai Mäkisara
fcb4fbe0d1 Backdated import of mt-st version 0.7
This is an import of the mt-st upstream release 0.7 as it appeared in
the Debian archives.
2015-05-16 17:26:03 +02:00