Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
dcdb
dcdb
Commits
d1b381e8
Commit
d1b381e8
authored
Sep 24, 2013
by
Axel Auweter
Browse files
Use a more suited character for marking where the new line should be inserted (Ticket
#7
).
parent
56c0cd48
Changes
1
Hide whitespace changes
Inline
Side-by-side
CollectAgent/Makefile
View file @
d1b381e8
...
...
@@ -55,9 +55,9 @@ cassandra/Cassandra.h:
grep
stdint cassandra/Cassandra.h
>
/dev/null
;
\
if
[
"
$$
?"
-eq
"1"
]
;
then
sed
-i
'1i#include <stdint.h>'
cassandra/Cassandra.h
;
fi
;
\
fi
# This is a really bad way of adding a line of text from a Makefile, but the differences between sed on Mac OS and Linux leave me with no options...
@
sed
-e
's/#include "cassandra_types.h"/#include "cassandra_types.h"
,
#undef VERSION/'
cassandra/cassandra_constants.h
>
cassandra/cassandra_constants.h_newline
@
cat
cassandra/cassandra_constants.h_newline |
tr
,
'\n'
>
cassandra/cassandra_constants.h
@
# This is a really bad way of adding a line of text from a Makefile, but the differences between sed on Mac OS and Linux leave me with no options...
@
sed
-e
's/#include "cassandra_types.h"/#include "cassandra_types.h"
$$
#undef VERSION/'
cassandra/cassandra_constants.h
>
cassandra/cassandra_constants.h_newline
@
cat
cassandra/cassandra_constants.h_newline |
tr
$$
'\n'
>
cassandra/cassandra_constants.h
@
rm
cassandra/cassandra_constants.h_newline
clean
:
clean-cassandra-headers
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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