From 3c33a592f61843e8904284747cd9357bee4f91b4 Mon Sep 17 00:00:00 2001 From: Sebastian Lackner Date: Thu, 5 Jun 2014 22:17:55 +0200 Subject: [PATCH] Make generate-patchlist.sh compatible with FreeBSD. --- debian/tools/generate-patchlist.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/debian/tools/generate-patchlist.sh b/debian/tools/generate-patchlist.sh index bc93c629..a4e5777e 100755 --- a/debian/tools/generate-patchlist.sh +++ b/debian/tools/generate-patchlist.sh @@ -18,10 +18,8 @@ done PATCH_LINES=$(echo "${PATCH_DATA}" | wc -l); PATCH_LINES=$((${PATCH_LINES}+20)); -PATCH_DATA=$(echo "${PATCH_DATA}" | sed ':a;N;$!ba;s/\n/\\n/g'); -cat < Subject: Autogenerated patch list. @@ -30,7 +28,7 @@ diff --git a/libs/wine/config.c b/libs/wine/config.c index a273502..5fa0cd5 100644 --- a/libs/wine/config.c +++ b/libs/wine/config.c -@@ -478,6 +478,##PATCH_LINES## @@ const char *wine_get_version(void) +@@ -478,6 +478,${PATCH_LINES} @@ const char *wine_get_version(void) return PACKAGE_VERSION; } @@ -39,7 +37,7 @@ index a273502..5fa0cd5 100644 + const char *author; + const char *title; +} wine_patch_data[] = { -##PATCH_DATA## +${PATCH_DATA} + { NULL, NULL, NULL } +}; +