boothj5/profanity — pull request #313 by pasis (2014-03-06 00:11:51+00:00)
Title: Fixed build error when make run with -jN option

This patch fixes error:

make -j9
rm -f src/gitversion.c src/gitversion.o
echo "#ifndef PROF_GIT_BRANCH" >> src/gitversion.c
echo "#define PROF_GIT_BRANCH \"branch-master\"" >> src/gitversion.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I./src -I/usr/include/ncursesw -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -Wall -Wno-deprecated-declarations -Wunused -Werror -O2 -pipe -march=native -c -o src/main.o src/main.c
echo "#endif" >> src/gitversion.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I./src -I/usr/include/ncursesw -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -Wall -Wno-deprecated-declarations -Wunused -Werror -O2 -pipe -march=native -c -o src/contact.o src/contact.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I./src -I/usr/include/ncursesw -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -Wall -Wno-deprecated-declarations -Wunused -Werror -O2 -pipe -march=native -c -o src/log.o src/log.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I./src -I/usr/include/ncursesw -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -Wall -Wno-deprecated-declarations -Wunused -Werror -O2 -pipe -march=native -c -o src/common.o src/common.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I./src -I/usr/include/ncursesw -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -Wall -Wno-deprecated-declarations -Wunused -Werror -O2 -pipe -march=native -c -o src/profanity.o src/profanity.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I./src -I/usr/include/ncursesw -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -Wall -Wno-deprecated-declarations -Wunused -Werror -O2 -pipe -march=native -c -o src/chat_session.o src/chat_session.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I./src -I/usr/include/ncursesw -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -Wall -Wno-deprecated-declarations -Wunused -Werror -O2 -pipe -march=native -c -o src/muc.o src/muc.c
echo "#ifndef PROF_GIT_REVISION" >> src/gitversion.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I./src -I/usr/include/ncursesw -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -Wall -Wno-deprecated-declarations -Wunused -Werror -O2 -pipe -march=native -c -o src/jid.o src/jid.c
echo "#define PROF_GIT_REVISION \"a9e2028\"" >> src/gitversion.c
echo "#endif" >> src/gitversion.c
In file included from src/profanity.c:25:0:
src/gitversion.c:4:0: error: unterminated #ifndef