Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nx-libs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dimbor
nx-libs
Commits
c910bf7c
Commit
c910bf7c
authored
Feb 17, 2015
by
Mike Gabriel
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3 from sunweaver/feature/nxagent-version-v2
Make nxagent aware of its NX'ish version string (and number).
parents
65deb86f
203d9714
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
93 additions
and
7 deletions
+93
-7
Makefile
Makefile
+19
-0
Imakefile
nx-X11/config/cf/Imakefile
+2
-1
nxversion.def.in
nx-X11/config/cf/nxversion.def.in
+4
-0
xorg.cf
nx-X11/config/cf/xorg.cf
+25
-1
Imakefile
nx-X11/programs/Xserver/hw/nxagent/Imakefile
+6
-1
Init.c
nx-X11/programs/Xserver/hw/nxagent/Init.c
+3
-2
VERSION
nx-X11/programs/Xserver/hw/nxagent/VERSION
+0
-2
version.sh
version.sh
+34
-0
No files found.
Makefile
View file @
c910bf7c
...
...
@@ -19,6 +19,11 @@ NXLIBDIR ?= $(PREFIX)/lib/nx
X2GOLIBDIR
?=
$(PREFIX)
/lib/x2go
CONFIGURE
?=
./configure
NX_VERSION_MAJOR
=
$(
shell
./version.sh 1
)
NX_VERSION_MINOR
=
$(
shell
./version.sh 2
)
NX_VERSION_MICRO
=
$(
shell
./version.sh 3
)
NX_VERSION_PATCH
=
$(
shell
./version.sh 4
)
SHELL
:=
/bin/bash
%
:
...
...
@@ -44,7 +49,21 @@ build-full:
cd
nxcomp
&&
autoconf
cd
nxcompext
&&
autoconf
cd
nxcompshad
&&
autoconf
# prepare nx-X11/config/cf/nxversion.def
sed
\
-e
's/###NX_VERSION_MAJOR###/$(NX_VERSION_MAJOR)/'
\
-e
's/###NX_VERSION_MINOR###/$(NX_VERSION_MINOR)/'
\
-e
's/###NX_VERSION_MICRO###/$(NX_VERSION_MICRO)/'
\
-e
's/###NX_VERSION_PATCH###/$(NX_VERSION_PATCH)/'
\
nx-X11/config/cf/nxversion.def.in
\
>
nx-X11/config/cf/nxversion.def
cd
nx-X11
&&
${MAKE}
World
# clean directly after build
rm
-f
nx-X11/config/cf/nxversion.def
cd
nxproxy
&&
autoconf
&&
(${CONFIGURE})
&&
${MAKE}
build
:
...
...
nx-X11/config/cf/Imakefile
View file @
c910bf7c
...
...
@@ -27,7 +27,8 @@ xorgsite.def \
$(VERSIONDEFFILES) \
$(HOSTDEFFILES) \
site.def \
xorgversion.def
xorgversion.def \
nxversion.def
RULEFILES = \
Imake.rules \
...
...
nx-X11/config/cf/nxversion.def.in
0 → 100644
View file @
c910bf7c
#define NX_VERSION_MAJOR ###NX_VERSION_MAJOR###
#define NX_VERSION_MINOR ###NX_VERSION_MINOR###
#define NX_VERSION_MICRO ###NX_VERSION_MICRO###
#define NX_VERSION_PATCH ###NX_VERSION_PATCH###
nx-X11/config/cf/xorg.cf
View file @
c910bf7c
...
...
@@ -54,6 +54,31 @@ XCOMM $Xorg: xfree86.cf,v 1.4 2000/08/17 19:41:49 cpqbld Exp $
XORG_VERSION_CURRENT = XorgVersion
RELEASE_VERSION = ReleaseVersion
#if NXAgentServer
#include "nxversion.def"
#if !defined(nxVersionString) && \
defined(NX_VERSION_MAJOR) && defined(NX_VERSION_MINOR) && \
defined(NX_VERSION_MICRO) && defined(NX_VERSION_PATCH)
# define nxVersionString `echo NX_VERSION_MAJOR NX_VERSION_MINOR NX_VERSION_MICRO NX_VERSION_PATCH | sed 's/ /./g'`
#endif
/*
* NX versions are M.m.µ.p, and NXVersion is:
*
* M * 10000000 + m * 100000 + µ * 1000 + p
*
*/
#if !defined(nxVersion) && defined(nxVersionString)
# define nxVersion (((NX_VERSION_MAJOR) * 10000000) + ((NX_VERSION_MINOR) * 100000) + ((NX_VERSION_MICRO) * 1000) + NX_VERSION_PATCH)
NX_VERSION_CURRENT = nxVersion
NX_VERSION_CURRENT_STRING = nxVersionString
#endif
#endif /* NXAgentServer */
#if !defined(XorgManVersionString) && \
defined(XORG_VERSION_MAJOR) && defined(XORG_VERSION_MINOR) && \
defined(XORG_VERSION_PATCH) && defined(XORG_VERSION_SNAP)
...
...
@@ -1686,4 +1711,3 @@ XFREE86JAPANESEDOCDIR = $(DOCDIR)/Japanese
#include <cross.def>
#endif
#include <xf86.rules>
nx-X11/programs/Xserver/hw/nxagent/Imakefile
View file @
c910bf7c
...
...
@@ -189,7 +189,12 @@ UPG_DEFINES=-DNXAGENT_UPGRADE
UPG_DEFINES=
#endif
DEFINES = -g $(OS_DEFINES) $(EXT_DEFINES) $(UPG_DEFINES) \
#if nxVersion
NX_DEFINES=-DNX_VERSION_CURRENT="$(NX_VERSION_CURRENT)" \
-DNX_VERSION_CURRENT_STRING="\"$(NX_VERSION_CURRENT_STRING)\""
#endif
DEFINES = -g $(OS_DEFINES) $(EXT_DEFINES) $(UPG_DEFINES) $(NX_DEFINES) \
-UXF86VIDMODE -UXFreeXDGA -UXF86MISC -UXF86DRI -UXFree86LOADER \
-DNXAGENT_SERVER \
-DNXAGENT_CONSTRAINCURSOR \
...
...
nx-X11/programs/Xserver/hw/nxagent/Init.c
View file @
c910bf7c
...
...
@@ -74,7 +74,8 @@ is" without express or implied warranty.
#undef DEBUG
#undef DUMP
#define NXAGENT_VERSION "3.5.0"
#define NXAGENT_VERSION NX_VERSION_CURRENT
#define NXAGENT_VERSION_STRING NX_VERSION_CURRENT_STRING
/*
* ProcVector array defined in tables.c.
...
...
@@ -226,7 +227,7 @@ void InitOutput(ScreenInfo *screenInfo, int argc, char *argv[])
if
(
serverGeneration
<=
1
)
{
fprintf
(
stderr
,
"
\n
NXAGENT - Version "
NXAGENT_VERSION
"
\n\n
"
);
fprintf
(
stderr
,
"
\n
NXAGENT - Version "
NXAGENT_VERSION
_STRING
"
\n\n
"
);
fprintf
(
stderr
,
"Copyright (C) 2001, 2011 NoMachine.
\n
"
);
fprintf
(
stderr
,
"See http://www.nomachine.com/ for more information.
\n\n
"
);
...
...
nx-X11/programs/Xserver/hw/nxagent/VERSION
deleted
120000 → 0
View file @
65deb86f
../../../../../VERSION
\ No newline at end of file
version.sh
0 → 100755
View file @
c910bf7c
#!/bin/sh
# Copyright (C) 2015 Mihai Moldovan <ionic@ionic.de>
# Copyright (C) 2015 Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
#
# This program 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 2 of the License, or
# (at your option) any later version.
#
# This program 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 this program; if not, write to the
# Free Software Foundation, Inc.,
# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
COMPONENT
=
"
$1
"
VERSION_FILE
=
"VERSION"
case
"
${
COMPONENT
}
"
in
(
1|2|3|4
)
:
;;
(
*
)
echo
"usage:
$(
basename
${
0
})
<position-in-version-number>"
>
&2
;
exit
1
;;
esac
# More than one line is not supported.
VER
=
"
$(
head
-n
"1"
"
${
VERSION_FILE
}
"
|
cut
-d
"."
-f
"
${
COMPONENT
}
"
)
"
[
"x
${
VER
}
"
=
"x"
]
&&
VER
=
"0"
printf
"
${
VER
}
"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment