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.
This commit is contained in:
Iustin Pop
2016-02-07 20:33:06 +01:00
parent 506424dc37
commit 0ee3591e51
5 changed files with 46 additions and 25 deletions

View File

@@ -23,6 +23,7 @@
#include <scsi/sg.h>
#include "mtio.h"
#include "version.h"
#ifndef FALSE
#define TRUE 1
@@ -30,8 +31,6 @@
#endif
#define SKIP_WHITE(p) for ( ; *p == ' ' || *p == '\t'; p++)
#define VERSION "1.1"
typedef struct _modepar_tr {
int defined;
int blocksize;