Subversion Repositories SvarDOS

Rev

Rev 421 | Rev 452 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 421 Rev 431
Line 25... Line 25...
25
/*
25
/*
26
 * ver
26
 * ver
27
 */
27
 */
28
 
28
 
29
#define PVER "2021.0"
29
#define PVER "2021.0"
-
 
30
#define COPYRDATE "2021"
30
 
31
 
31
static int cmd_ver(struct cmd_funcparam *p) {
32
static int cmd_ver(struct cmd_funcparam *p) {
32
  char *buff = p->BUFFER;
33
  char *buff = p->BUFFER;
33
  unsigned char maj = 0, min = 0;
34
  unsigned char maj = 0, min = 0;
34
 
35
 
35
  /* help screen */
36
  /* help screen */
36
  if (cmd_ishlp(p)) {
37
  if (cmd_ishlp(p)) {
37
    outputnl("Displays the DOS version.");
38
    outputnl("Displays the DOS version.");
-
 
39
    outputnl("");
-
 
40
    outputnl("ver [/about]");
-
 
41
    return(-1);
-
 
42
  }
-
 
43
 
-
 
44
  if ((p->argc == 1) && (imatch(p->argv[0], "/about"))) {
-
 
45
    outputnl("SvarCOM is a shell interpreter for DOS kernels compatible with MS-DOS 5+.");
-
 
46
    outputnl("");
-
 
47
    outputnl("This software is distributed under the terms of the MIT license.");
-
 
48
    outputnl("Copyright (C) " COPYRDATE " Mateusz Viste");
-
 
49
    outputnl("");
-
 
50
    outputnl("Prace te dedykuje Milenie i Mojmirowi. Zycze wam, abyscie w dalszym zyciu");
-
 
51
    outputnl("potrafili wlasciwie docenic wartosc czasow minionych i czerpali radosc z");
-
 
52
    outputnl("prostych przyjemnosci dnia codziennego.  Lair, jesien 2021.");
38
    return(-1);
53
    return(-1);
39
  }
54
  }
40
 
55
 
41
  if (p->argc != 0) {
56
  if (p->argc != 0) {
42
    outputnl("Invalid parameter");
57
    outputnl("Invalid parameter");