mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-17 08:45:23 +01:00
Add mes and mescc-tools-extra
mescc-tools-extra contains two important tools: - cp - chmod mes first builds itself from a mes 0.21 seed as used by guix, and then builds a mes 0.22 and then mes 0.22 using that created mes 0.22. It does /not/ use bootstrap.sh as we don't have a proper shell at this point, it has been manually adapted for kaem.
This commit is contained in:
parent
2706e07556
commit
649d7b68dc
1029 changed files with 120985 additions and 18 deletions
29
sysa/mes-0.22/lib/tests/mes/30-eputs.c
Normal file
29
sysa/mes-0.22/lib/tests/mes/30-eputs.c
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
/* -*-comment-start: "//";comment-end:""-*-
|
||||
* GNU Mes --- Maxwell Equations of Software
|
||||
* Copyright © 2017,2018,2019 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
|
||||
*
|
||||
* This file is part of GNU Mes.
|
||||
*
|
||||
* GNU Mes is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 3 of the License, or (at
|
||||
* your option) any later version.
|
||||
*
|
||||
* GNU Mes is distributed in the hope that it will be useful, but
|
||||
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <mes/lib-mini.h>
|
||||
|
||||
int
|
||||
main ()
|
||||
{
|
||||
eputs ("\n");
|
||||
eputs ("Hello, GNU Mes\n");
|
||||
return 0;
|
||||
}
|
||||
29
sysa/mes-0.22/lib/tests/mes/30-oputs.c
Normal file
29
sysa/mes-0.22/lib/tests/mes/30-oputs.c
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
/* -*-comment-start: "//";comment-end:""-*-
|
||||
* GNU Mes --- Maxwell Equations of Software
|
||||
* Copyright © 2017,2018 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
|
||||
*
|
||||
* This file is part of GNU Mes.
|
||||
*
|
||||
* GNU Mes is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 3 of the License, or (at
|
||||
* your option) any later version.
|
||||
*
|
||||
* GNU Mes is distributed in the hope that it will be useful, but
|
||||
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <mes/lib-mini.h>
|
||||
|
||||
int
|
||||
main ()
|
||||
{
|
||||
oputs ("\n");
|
||||
oputs ("Hello, GNU Mes\n");
|
||||
return 0;
|
||||
}
|
||||
2
sysa/mes-0.22/lib/tests/mes/30-oputs.stdout
Normal file
2
sysa/mes-0.22/lib/tests/mes/30-oputs.stdout
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
|
||||
Hello, GNU Mes
|
||||
52
sysa/mes-0.22/lib/tests/mes/50-itoa.c
Normal file
52
sysa/mes-0.22/lib/tests/mes/50-itoa.c
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
/* -*-comment-start: "//";comment-end:""-*-
|
||||
* GNU Mes --- Maxwell Equations of Software
|
||||
* Copyright © 2017,2018 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
|
||||
*
|
||||
* This file is part of GNU Mes.
|
||||
*
|
||||
* GNU Mes is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 3 of the License, or (at
|
||||
* your option) any later version.
|
||||
*
|
||||
* GNU Mes is distributed in the hope that it will be useful, but
|
||||
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <mes/lib.h>
|
||||
#include <string.h>
|
||||
|
||||
int
|
||||
main ()
|
||||
{
|
||||
char *p = "mes";
|
||||
|
||||
oputs ("\n");
|
||||
oputs ("t: itoa (33) == \"33\"\n");
|
||||
oputs ("=>");
|
||||
oputs (itoa (33));
|
||||
oputs ("\n");
|
||||
|
||||
if (strcmp (itoa (33), "33"))
|
||||
return 1;
|
||||
|
||||
oputs ("strcmp (itoa (-1), \"-1\")\n");
|
||||
oputs (itoa (-1));
|
||||
if (strcmp (itoa (-1), "-1"))
|
||||
return 2;
|
||||
|
||||
oputs ("strcmp (itoa (0), \"0\")\n");
|
||||
if (strcmp (itoa (0), "0"))
|
||||
return 3;
|
||||
|
||||
oputs ("strcmp (itoa (1), \"1\")\n");
|
||||
if (strcmp (itoa (1), "1"))
|
||||
return 4;
|
||||
|
||||
return 0;
|
||||
}
|
||||
35
sysa/mes-0.22/lib/tests/mes/90-abtod.c
Normal file
35
sysa/mes-0.22/lib/tests/mes/90-abtod.c
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
/* -*-comment-start: "//";comment-end:""-*-
|
||||
* GNU Mes --- Maxwell Equations of Software
|
||||
* Copyright © 2019 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
|
||||
*
|
||||
* This file is part of GNU Mes.
|
||||
*
|
||||
* GNU Mes is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 3 of the License, or (at
|
||||
* your option) any later version.
|
||||
*
|
||||
* GNU Mes is distributed in the hope that it will be useful, but
|
||||
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <mes/lib.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
int
|
||||
main ()
|
||||
{
|
||||
char *s = "1.2e3";
|
||||
char const *p = s;
|
||||
double d = abtod (&p, 0);
|
||||
if (d != 1200)
|
||||
return d;
|
||||
|
||||
return 0;
|
||||
}
|
||||
36
sysa/mes-0.22/lib/tests/mes/90-dtoab.c
Normal file
36
sysa/mes-0.22/lib/tests/mes/90-dtoab.c
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
/* -*-comment-start: "//";comment-end:""-*-
|
||||
* GNU Mes --- Maxwell Equations of Software
|
||||
* Copyright © 2019 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
|
||||
*
|
||||
* This file is part of GNU Mes.
|
||||
*
|
||||
* GNU Mes is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 3 of the License, or (at
|
||||
* your option) any later version.
|
||||
*
|
||||
* GNU Mes is distributed in the hope that it will be useful, but
|
||||
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <mes/lib.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
int
|
||||
main ()
|
||||
{
|
||||
double d = 1.23;
|
||||
char *p = dtoab (d, 10, 1);
|
||||
puts (p);
|
||||
|
||||
d = -3.14159265;
|
||||
p = dtoab (d, 10, 1);
|
||||
puts (p);
|
||||
|
||||
return 0;
|
||||
}
|
||||
2
sysa/mes-0.22/lib/tests/mes/90-dtoab.stdout
Normal file
2
sysa/mes-0.22/lib/tests/mes/90-dtoab.stdout
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
1.23
|
||||
-3.14159265
|
||||
Loading…
Add table
Add a link
Reference in a new issue