aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2017-05-26 15:56:29 -0700
committerElliott Hughes <enh@google.com>2017-05-26 15:56:29 -0700
commit74575259cc4a539adaa5b3af54aff1c857f8de59 (patch)
tree22da26fda9c9feada367347ea0f75d19497baacf
parent5d53e81b8f4c7097c27d56f0e24d8e04b0ceafb7 (diff)
downloadstrace-74575259cc4a539adaa5b3af54aff1c857f8de59.tar.gz
Give in and hard-code the rest of the --version string details.
I didn't include the .year file, and although upstream now also has a .version file, I strongly suspect I'm more likely to remember to update the makefile than I am to copy those across. Bug: N/A Test: builds Change-Id: Ib79e5507fe4bd465259e90564a9bd02093f464c3
-rw-r--r--Android.mk9
1 files changed, 4 insertions, 5 deletions
diff --git a/Android.mk b/Android.mk
index d9a74f39..d2d6edf6 100644
--- a/Android.mk
+++ b/Android.mk
@@ -41,9 +41,8 @@ ifneq ($(strip $(TARGET_ARCH)),mips)
include $(CLEAR_VARS)
-strace_version := $(shell grep strace $(LOCAL_PATH)/debian/changelog | \
- head -1 | cut -d " " -f 2)
-strace_year := $(shell cat $(LOCAL_PATH)/.year)
+strace_version := "4.17"
+strace_year := "2017"
LOCAL_SRC_FILES := \
access.c \
@@ -300,8 +299,8 @@ LOCAL_CFLAGS := \
-DMAJOR_IN_SYSMACROS \
-DPACKAGE_NAME='"strace"' \
-DPACKAGE_URL='"https://strace.io"' \
- -DPACKAGE_VERSION='"$(strace_version)"' \
- -DCOPYRIGHT_YEAR='"$(strace_year)"' \
+ -DPACKAGE_VERSION='$(strace_version)' \
+ -DCOPYRIGHT_YEAR='$(strace_year)' \
-DSIZEOF_KERNEL_LONG_T=SIZEOF_LONG \
-DSIZEOF_OFF_T=SIZEOF_LONG \
-DSIZEOF_LONG_LONG=8 \