1
1
Форкнуть 0

Правила сборки для ЗОСРВ "Нейтрино" редакции 2020

Этот коммит содержится в:
родитель e4ecd03e3f
Коммит e70c623d72
21 изменённых файлов: 85 добавлений и 0 удалений

2
Makefile Обычный файл
Просмотреть файл

@ -0,0 +1,2 @@
LIST=OS
include recurse.mk

31
README.md Обычный файл
Просмотреть файл

@ -0,0 +1,31 @@
Сборка проекта в ЗОСРВ "Нейтрино" редакции 2020
===============================================
Для всех архитектур:
```
make -j16 install
```
Только для x86:
```
CPULIST=x86 make -j16 install
```
**Порт nano проверен на работоспособность условно и, вероятно, потребует дополнительной адаптации.**
**Поддержка мыши отключена (требуется более новый ncurses).**
Зависимости
===========
1. В процессе сборки происходит скачивание `gnulib`
Запуск
===========
```
export TERM=xterm
nano
```

15
common.mk Обычный файл
Просмотреть файл

@ -0,0 +1,15 @@
ifndef QCONFIG
QCONFIG=qconfig.mk
endif
include $(QCONFIG)
CONFIGUREFLAGS += --disable-maintainer-mode
#CONFIGUREFLAGS += --disable-browser
#CONFIGUREFLAGS += --disable-utf8
CONFIGUREFLAGS += --disable-mouse
CPPFLAGS += -D_QNX_SOURCE=1
CFLAGS += -D_QNX_SOURCE=1
include $(MKFILES_ROOT)/autotools.mk
include $(MKFILES_ROOT)/qtargets.mk

2
nto/Makefile Обычный файл
Просмотреть файл

@ -0,0 +1,2 @@
LIST=CPU
include recurse.mk

2
nto/aarch64/Makefile Обычный файл
Просмотреть файл

@ -0,0 +1,2 @@
LIST=VARIANT
include recurse.mk

1
nto/aarch64/o.le/Makefile Обычный файл
Просмотреть файл

@ -0,0 +1 @@
include ../../../common.mk

2
nto/arm/Makefile Обычный файл
Просмотреть файл

@ -0,0 +1,2 @@
LIST=VARIANT
include recurse.mk

1
nto/arm/o.le.v7/Makefile Обычный файл
Просмотреть файл

@ -0,0 +1 @@
include ../../../common.mk

1
nto/arm/o.le/Makefile Обычный файл
Просмотреть файл

@ -0,0 +1 @@
include ../../../common.mk

2
nto/e2k/Makefile Обычный файл
Просмотреть файл

@ -0,0 +1,2 @@
LIST=VARIANT
include recurse.mk

1
nto/e2k/o.le/Makefile Обычный файл
Просмотреть файл

@ -0,0 +1 @@
include ../../../common.mk

2
nto/mips/Makefile Обычный файл
Просмотреть файл

@ -0,0 +1,2 @@
LIST=VARIANT
include recurse.mk

1
nto/mips/o.be/Makefile Обычный файл
Просмотреть файл

@ -0,0 +1 @@
include ../../../common.mk

1
nto/mips/o.le.mc/Makefile Обычный файл
Просмотреть файл

@ -0,0 +1 @@
include ../../../common.mk

1
nto/mips/o.le/Makefile Обычный файл
Просмотреть файл

@ -0,0 +1 @@
include ../../../common.mk

2
nto/ppc/Makefile Обычный файл
Просмотреть файл

@ -0,0 +1,2 @@
LIST=VARIANT
include recurse.mk

1
nto/ppc/o.be.spe/Makefile Обычный файл
Просмотреть файл

@ -0,0 +1 @@
include ../../../common.mk

1
nto/ppc/o.be/Makefile Обычный файл
Просмотреть файл

@ -0,0 +1 @@
include ../../../common.mk

2
nto/x86/Makefile Обычный файл
Просмотреть файл

@ -0,0 +1,2 @@
LIST=VARIANT
include recurse.mk

1
nto/x86/o/Makefile Обычный файл
Просмотреть файл

@ -0,0 +1 @@
include ../../../common.mk

Просмотреть файл

@ -2065,8 +2065,12 @@ void treat(char *tempfile_name, char *theprogram, bool spelling)
size_t was_x = openfile->current_x;
bool was_at_eol = (openfile->current->data[openfile->current_x] == '\0');
struct stat fileinfo;
#ifndef __KPDA__
long timestamp_sec = 0;
long timestamp_nsec = 0;
#else /* __KPDA__ */
time_t timestamp = 0;
#endif /* __KPDA__ */
static char **arguments = NULL;
pid_t thepid;
int program_status, errornumber;
@ -2085,8 +2089,12 @@ void treat(char *tempfile_name, char *theprogram, bool spelling)
return;
}
#ifndef __KPDA__
timestamp_sec = (long)fileinfo.st_mtim.tv_sec;
timestamp_nsec = (long)fileinfo.st_mtim.tv_nsec;
#else /* __KPDA__ */
timestamp = (time_t)fileinfo.st_mtime;
#endif /* __KPDA__ */
}
/* Exit from curses mode to give the program control of the terminal. */
@ -2128,9 +2136,14 @@ void treat(char *tempfile_name, char *theprogram, bool spelling)
free(arguments[0]);
/* When the temporary file wasn't touched, say so and leave. */
#ifndef __KPDA__
if (timestamp_sec > 0 && stat(tempfile_name, &fileinfo) == 0 &&
(long)fileinfo.st_mtim.tv_sec == timestamp_sec &&
(long)fileinfo.st_mtim.tv_nsec == timestamp_nsec) {
#else /* __KPDA__ */
if (timestamp > 0 && stat(tempfile_name, &fileinfo) == 0 &&
(time_t)fileinfo.st_mtime == timestamp) {
#endif /* __KPDA__ */
statusline(REMARK, _("Nothing changed"));
return;
}