Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
5776a723
Commit
5776a723
authored
Nov 06, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
loader: Update the reported version from the current git HEAD if available.
parent
bda2832d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
5 deletions
+13
-5
.gitignore
loader/.gitignore
+2
-0
Makefile.in
loader/Makefile.in
+9
-3
main.c
loader/main.c
+2
-2
No files found.
loader/.gitignore
View file @
5776a723
/version-stamp
/version.c
/wine
/wine
/wine-glibc
/wine-glibc
/wine-kthread
/wine-kthread
...
...
loader/Makefile.in
View file @
5776a723
...
@@ -11,8 +11,8 @@ C_SRCS = \
...
@@ -11,8 +11,8 @@ C_SRCS = \
preloader.c
\
preloader.c
\
pthread.c
pthread.c
KTHREAD_OBJS
=
kthread.o main.o
KTHREAD_OBJS
=
kthread.o main.o
version.o
PTHREAD_OBJS
=
pthread.o main.o
PTHREAD_OBJS
=
pthread.o main.o
version.o
MAIN_BINARY
=
@MAIN_BINARY@
MAIN_BINARY
=
@MAIN_BINARY@
EXTRA_BINARIES
=
@EXTRA_BINARIES@
EXTRA_BINARIES
=
@EXTRA_BINARIES@
...
@@ -58,6 +58,12 @@ uninstall::
...
@@ -58,6 +58,12 @@ uninstall::
$(RM)
$(DESTDIR)$(mandir)
/man
$(prog_manext)
/wine.
$(prog_manext)
$(RM)
$(DESTDIR)$(mandir)
/man
$(prog_manext)
/wine.
$(prog_manext)
clean
::
clean
::
$(RM)
$(WINE_BINARIES)
$(MODULE)
$(RM)
$(WINE_BINARIES)
$(MODULE)
version.c version-stamp
version-stamp
:
dummy
(
GIT_DIR
=
$(TOPSRCDIR)
/.git git describe 2>/dev/null
||
echo
"wine-@PACKAGE_VERSION@"
)
|
sed
-e
's/\(.*\)/const char wine_version[] = "\1";/'
>
$@
||
(
$(RM)
$@
&&
exit
1
)
version.c
:
version-stamp
@
cmp
-s
version-stamp
$@
||
cp
version-stamp
$@
@DEPENDENCIES@
# everything below this line is overwritten by make depend
@DEPENDENCIES@
# everything below this line is overwritten by make depend
loader/main.c
View file @
5776a723
...
@@ -68,7 +68,7 @@ static inline void reserve_area( void *addr, size_t size )
...
@@ -68,7 +68,7 @@ static inline void reserve_area( void *addr, size_t size )
*/
*/
static
void
check_command_line
(
int
argc
,
char
*
argv
[]
)
static
void
check_command_line
(
int
argc
,
char
*
argv
[]
)
{
{
static
const
char
version
[]
=
PACKAGE_STRING
;
extern
const
char
wine_version
[]
;
static
const
char
usage
[]
=
static
const
char
usage
[]
=
"Usage: wine PROGRAM [ARGUMENTS...] Run the specified program
\n
"
"Usage: wine PROGRAM [ARGUMENTS...] Run the specified program
\n
"
" wine --help Display this help and exit
\n
"
" wine --help Display this help and exit
\n
"
...
@@ -86,7 +86,7 @@ static void check_command_line( int argc, char *argv[] )
...
@@ -86,7 +86,7 @@ static void check_command_line( int argc, char *argv[] )
}
}
if
(
!
strcmp
(
argv
[
1
],
"--version"
))
if
(
!
strcmp
(
argv
[
1
],
"--version"
))
{
{
printf
(
"%s
\n
"
,
version
);
printf
(
"%s
\n
"
,
wine_
version
);
exit
(
0
);
exit
(
0
);
}
}
}
}
...
...
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