Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
50826b26
Commit
50826b26
authored
Mar 20, 2015
by
Gautier Pelloux-Prayer
Browse files
Makefile.am: use printf instead of echo to generate liblinphone_gitversion.h
parent
22b536bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
coreapi/Makefile.am
View file @
50826b26
...
...
@@ -164,7 +164,7 @@ endif
AM_CPPFLAGS
=
\
-I
$(top_srcdir)
-I
$(top_srcdir)
/include
-I
$(builddir)
\
$(ORTP_CFLAGS)
\
$(MEDIASTREAMER_CFLAGS)
$(MEDIASTREAMER_CFLAGS)
COMMON_CFLAGS
=
\
$(STRICT_OPTIONS)
\
...
...
@@ -200,14 +200,14 @@ make_gitversion_h:
if
test
-n
"
$(GITLOG)
"
;
then
\
if
test
"
$(GITDESCRIBE)
"
!=
""
;
then
\
if
test
"
$(GIT_TAG)
"
!=
"
$(PACKAGE_VERSION)
"
;
then
\
echo
"*** PACKAGE_VERSION and git tag differ. Please put them identical."
;
\
$(ECHO)
"*** PACKAGE_VERSION and git tag differ. Please put them identical."
;
\
exit
1
;
\
fi
;
\
$(ECHO)
-e
"#define LIBLINPHONE_GIT_VERSION
\"
$(GITDESCRIBE)
\"\n
"
>
$(builddir)
/
$(GITVERSION_FILE_TMP)
;
\
printf
"#define LIBLINPHONE_GIT_VERSION
\"
$(GITDESCRIBE)
\"\n
"
>
$(builddir)
/
$(GITVERSION_FILE_TMP)
;
\
elif
test
"
$(GITREVISION)
"
!=
""
;
then
\
$(ECHO)
-e
"#define LIBLINPHONE_GIT_VERSION
\"
$(LINPHONE_VERSION)
_
$(GITREVISION)
\"\n
"
>
$(builddir)
/
$(GITVERSION_FILE_TMP)
;
\
printf
"#define LIBLINPHONE_GIT_VERSION
\"
$(LINPHONE_VERSION)
_
$(GITREVISION)
\"\n
"
>
$(builddir)
/
$(GITVERSION_FILE_TMP)
;
\
else
\
$(ECHO)
""
>
$(builddir)
/
$(GITVERSION_FILE_TMP)
;
\
printf
""
>
$(builddir)
/
$(GITVERSION_FILE_TMP)
;
\
fi
;
\
if
!
test
-f
$(builddir)
/
$(GITVERSION_FILE)
;
then
\
cp
-f
$(builddir)
/
$(GITVERSION_FILE_TMP)
$(builddir)
/
$(GITVERSION_FILE)
;
\
...
...
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