PKGBUILDs/aur/omxplayer-git/gen_version.patch

59 lines
1.6 KiB
Diff
Raw Normal View History

2013-08-13 01:49:03 +00:00
From d865922e7de11ae33618954f16888303b39ec7b3 Mon Sep 17 00:00:00 2001
From: Sergio Conde <skgsergio@gmail.com>
Date: Wed, 7 Aug 2013 23:19:57 +0200
Subject: [PATCH] Converted gen_version.sh to bash script. Fixes
popcornmix/omxplayer#26
---
Makefile | 2 +-
gen_version.sh | 16 ++++++++--------
2 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/Makefile b/Makefile
index a77f369..7878bc8 100644
--- a/Makefile
+++ b/Makefile
@@ -44,7 +44,7 @@ all: omxplayer.bin
$(CXX) $(CFLAGS) $(INCLUDES) -c $< -o $@ -Wno-deprecated-declarations
version:
- sh gen_version.sh > version.h
+ bash gen_version.sh > version.h
omxplayer.bin: version $(OBJS)
$(CXX) $(LDFLAGS) -o omxplayer.bin $(OBJS) -lvchiq_arm -lvcos -lrt -lpthread -lavutil -lavcodec -lavformat -lswscale -lswresample -lpcre
diff --git a/gen_version.sh b/gen_version.sh
index da810cd..fd4660f 100755
--- a/gen_version.sh
+++ b/gen_version.sh
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
#
# Author:
# Sergio Conde <skgsergio@gmail.com>
@@ -24,12 +24,12 @@ if [ x"$?" = x"0" ]; then
fi
fi
-echo "#ifndef __VERSION_H__"
-echo "#define __VERSION_H__\n"
+echo -e "#ifndef __VERSION_H__"
+echo -e "#define __VERSION_H__\n"
-echo "#define VERSION_DATE \"$date\""
-echo "#define VERSION_HASH \"$hash\""
-echo "#define VERSION_BRANCH \"$branch\""
-echo "#define VERSION_REPO \"$repo\""
+echo -e "#define VERSION_DATE \"$date\""
+echo -e "#define VERSION_HASH \"$hash\""
+echo -e "#define VERSION_BRANCH \"$branch\""
+echo -e "#define VERSION_REPO \"$repo\""
-echo "\n#endif"
\ No newline at end of file
+echo -e "\n#endif"
--
1.8.1.6