strar.c (schily-2021-08-14.tar.bz2) | : | strar.c (schily-2021-09-18.tar.bz2) | ||
---|---|---|---|---|
/* @(#)strar.c 1.7 18/09/28 Copyright 2017-2018 J. Schilling */ | /* @(#)strar.c 1.8 21/08/20 Copyright 2017-2018 J. Schilling */ | |||
#include <schily/mconfig.h> | #include <schily/mconfig.h> | |||
#ifndef lint | #ifndef lint | |||
static UConst char sccsid[] = | static UConst char sccsid[] = | |||
"@(#)strar.c 1.7 18/09/28 Copyright 2017-2018 J. Schilling"; | "@(#)strar.c 1.8 21/08/20 Copyright 2017-2018 J. Schilling"; | |||
#endif | #endif | |||
/* | /* | |||
* Manage a StreamArchive | * Manage a StreamArchive | |||
* | * | |||
* Copyright (c) 2017-2018 J. Schilling | * Copyright (c) 2017-2018 J. Schilling | |||
*/ | */ | |||
/* | /* | |||
* The contents of this file are subject to the terms of the | * The contents of this file are subject to the terms of the | |||
* Common Development and Distribution License, Version 1.0 only | * Common Development and Distribution License, Version 1.0 only | |||
* (the "License"). You may not use this file except in compliance | * (the "License"). You may not use this file except in compliance | |||
skipping to change at line 28 | skipping to change at line 28 | |||
* See the file CDDL.Schily.txt in this distribution for details. | * See the file CDDL.Schily.txt in this distribution for details. | |||
* A copy of the CDDL is also available via the Internet at | * A copy of the CDDL is also available via the Internet at | |||
* http://www.opensource.org/licenses/cddl1.txt | * http://www.opensource.org/licenses/cddl1.txt | |||
* | * | |||
* When distributing Covered Code, include this CDDL HEADER in each | * When distributing Covered Code, include this CDDL HEADER in each | |||
* file and include the License file CDDL.Schily.txt from this distribution. | * file and include the License file CDDL.Schily.txt from this distribution. | |||
*/ | */ | |||
#include <schily/stdio.h> | #include <schily/stdio.h> | |||
#include <schily/types.h> | #include <schily/types.h> | |||
#define GT_COMERR /* #define comerr gtcomerr */ | ||||
#define GT_ERROR /* #define error gterror */ | ||||
#include <schily/schily.h> | #include <schily/schily.h> | |||
#include <schily/stdlib.h> | #include <schily/stdlib.h> | |||
#include <schily/strar.h> | #include <schily/strar.h> | |||
#include <schily/nlsdefs.h> | #include <schily/nlsdefs.h> | |||
LOCAL BOOL debug; | LOCAL BOOL debug; | |||
BOOL cflag; | BOOL cflag; | |||
BOOL xflag; | BOOL xflag; | |||
LOCAL BOOL tflag; | LOCAL BOOL tflag; | |||
EXPORT int verbose; | EXPORT int verbose; | |||
skipping to change at line 76 | skipping to change at line 78 | |||
error("\t-v\t\tincrement verbose level\n"); | error("\t-v\t\tincrement verbose level\n"); | |||
error("\tlist=name\tread filenames from named file\n"); | error("\tlist=name\tread filenames from named file\n"); | |||
error("\t-nometa\t\tdo not add meta data except path and size\n"); | error("\t-nometa\t\tdo not add meta data except path and size\n"); | |||
error("\t-basemeta\tonly add basic meta data: path, mode, size, filetype\ n"); | error("\t-basemeta\tonly add basic meta data: path, mode, size, filetype\ n"); | |||
exit(exitcode); | exit(exitcode); | |||
} | } | |||
LOCAL void | LOCAL void | |||
pvers() | pvers() | |||
{ | { | |||
printf("strar %s %s (%s-%s-%s)\n\n", "1.7", "2018/09/28", | gtprintf("strar %s %s (%s-%s-%s)\n\n", "1.8", "2021/08/20", | |||
HOST_CPU, HOST_VENDOR, HOST_OS); | HOST_CPU, HOST_VENDOR, HOST_OS); | |||
printf("Copyright (C) 2017-2018 Jörg Schilling\n"); | gtprintf("Copyright (C) 2017-2021 %s\n", _("Jörg Schilling")); | |||
printf("This is free software; see the source for copying conditions. Th | gtprintf("This is free software; see the source for copying conditions. | |||
ere is NO\n"); | There is NO\n"); | |||
printf("warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULA | gtprintf("warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICU | |||
R PURPOSE.\n"); | LAR PURPOSE.\n"); | |||
exit(0); | exit(0); | |||
} | } | |||
int | int | |||
main(ac, av) | main(ac, av) | |||
int ac; | int ac; | |||
char *av[]; | char *av[]; | |||
{ | { | |||
int i; | int i; | |||
int cac; | int cac; | |||
End of changes. 5 change blocks. | ||||
8 lines changed or deleted | 10 lines changed or added |