Subversion Repositories SvarDOS

Rev

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

Rev 1111 Rev 1602
Line 1... Line 1...
1
/*
1
/*
2
 * PKG - SvarDOS package manager
2
 * PKG - SvarDOS package manager
3
 *
3
 *
4
 * PUBLISHED UNDER THE TERMS OF THE MIT LICENSE
4
 * PUBLISHED UNDER THE TERMS OF THE MIT LICENSE
5
 *
5
 *
6
 * COPYRIGHT (C) 2016-2022 MATEUSZ VISTE, ALL RIGHTS RESERVED.
6
 * COPYRIGHT (C) 2016-2023 MATEUSZ VISTE, ALL RIGHTS RESERVED.
7
 *
7
 *
8
 * Permission is hereby granted, free of charge, to any person obtaining a
8
 * Permission is hereby granted, free of charge, to any person obtaining a
9
 * copy of this software and associated documentation files (the "Software"),
9
 * copy of this software and associated documentation files (the "Software"),
10
 * to deal in the Software without restriction, including without limitation
10
 * to deal in the Software without restriction, including without limitation
11
 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
11
 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
Line 134... Line 134...
134
  int res = 1;
134
  int res = 1;
135
  enum ACTIONTYPES action;
135
  enum ACTIONTYPES action;
136
  const char *dosdir;
136
  const char *dosdir;
137
  struct customdirs *dirlist;
137
  struct customdirs *dirlist;
138
 
138
 
139
  svarlang_autoload("pkg"); /* NLS init */
139
  svarlang_autoload_exepath(argv[0], getenv("LANG"));   /* NLS init */
140
 
140
 
141
  action = parsearg(argc, argv);
141
  action = parsearg(argc, argv);
142
  switch (action) {
142
  switch (action) {
143
    case ACTION_HELP:
143
    case ACTION_HELP:
144
      res = showhelp();
144
      res = showhelp();