Правила сборки для ЗОСРВ "Нейтрино" редакции 2020
This commit is contained in:
parent
e4ecd03e3f
commit
e70c623d72
31
README.md
Normal file
31
README.md
Normal file
@ -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
Normal file
15
common.mk
Normal file
@ -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
Normal file
2
nto/Makefile
Normal file
@ -0,0 +1,2 @@
|
||||
LIST=CPU
|
||||
include recurse.mk
|
2
nto/aarch64/Makefile
Normal file
2
nto/aarch64/Makefile
Normal file
@ -0,0 +1,2 @@
|
||||
LIST=VARIANT
|
||||
include recurse.mk
|
1
nto/aarch64/o.le/Makefile
Normal file
1
nto/aarch64/o.le/Makefile
Normal file
@ -0,0 +1 @@
|
||||
include ../../../common.mk
|
2
nto/arm/Makefile
Normal file
2
nto/arm/Makefile
Normal file
@ -0,0 +1,2 @@
|
||||
LIST=VARIANT
|
||||
include recurse.mk
|
1
nto/arm/o.le.v7/Makefile
Normal file
1
nto/arm/o.le.v7/Makefile
Normal file
@ -0,0 +1 @@
|
||||
include ../../../common.mk
|
1
nto/arm/o.le/Makefile
Normal file
1
nto/arm/o.le/Makefile
Normal file
@ -0,0 +1 @@
|
||||
include ../../../common.mk
|
2
nto/e2k/Makefile
Normal file
2
nto/e2k/Makefile
Normal file
@ -0,0 +1,2 @@
|
||||
LIST=VARIANT
|
||||
include recurse.mk
|
1
nto/e2k/o.le/Makefile
Normal file
1
nto/e2k/o.le/Makefile
Normal file
@ -0,0 +1 @@
|
||||
include ../../../common.mk
|
2
nto/mips/Makefile
Normal file
2
nto/mips/Makefile
Normal file
@ -0,0 +1,2 @@
|
||||
LIST=VARIANT
|
||||
include recurse.mk
|
1
nto/mips/o.be/Makefile
Normal file
1
nto/mips/o.be/Makefile
Normal file
@ -0,0 +1 @@
|
||||
include ../../../common.mk
|
1
nto/mips/o.le.mc/Makefile
Normal file
1
nto/mips/o.le.mc/Makefile
Normal file
@ -0,0 +1 @@
|
||||
include ../../../common.mk
|
1
nto/mips/o.le/Makefile
Normal file
1
nto/mips/o.le/Makefile
Normal file
@ -0,0 +1 @@
|
||||
include ../../../common.mk
|
2
nto/ppc/Makefile
Normal file
2
nto/ppc/Makefile
Normal file
@ -0,0 +1,2 @@
|
||||
LIST=VARIANT
|
||||
include recurse.mk
|
1
nto/ppc/o.be.spe/Makefile
Normal file
1
nto/ppc/o.be.spe/Makefile
Normal file
@ -0,0 +1 @@
|
||||
include ../../../common.mk
|
1
nto/ppc/o.be/Makefile
Normal file
1
nto/ppc/o.be/Makefile
Normal file
@ -0,0 +1 @@
|
||||
include ../../../common.mk
|
2
nto/x86/Makefile
Normal file
2
nto/x86/Makefile
Normal file
@ -0,0 +1,2 @@
|
||||
LIST=VARIANT
|
||||
include recurse.mk
|
1
nto/x86/o/Makefile
Normal file
1
nto/x86/o/Makefile
Normal file
@ -0,0 +1 @@
|
||||
include ../../../common.mk
|
13
src/text.c
13
src/text.c
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user