darktable/0001-Remove-dependancy-on-git.patch
Sascha Peilicke f81d07e6b2 Accepting request 77913 from graphics
darktable is a photography workflow application; a virtual lighttable and darkroom for photographers: it manages your digital negatives in a database and lets you view them through a zoomable lighttable. it also enables you to develop raw images and enhance them.

OBS-URL: https://build.opensuse.org/request/show/77913
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/darktable?expand=0&rev=1
2011-08-04 10:36:12 +00:00

33 lines
1.1 KiB
Diff

From cb710267cd2754f01776d625368ce350f87b6d68 Mon Sep 17 00:00:00 2001
From: Tobias Ellinghaus <houz@gmx.de>
Date: Mon, 25 Jul 2011 22:50:53 +0200
Subject: [PATCH 1/1] Remove dependancy on git
Building a tgz package created using "make pkgsrc" didn't have a correct
build/src/accelstrings_gen.h as the script creating that file used
"git grep" which doesn't work when not inside of a git tree. Instead, we
now use "git -r".
---
tools/create_accel_strings.sh | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/create_accel_strings.sh b/tools/create_accel_strings.sh
index 1658dbb..b86e557 100755
--- a/tools/create_accel_strings.sh
+++ b/tools/create_accel_strings.sh
@@ -1,9 +1,9 @@
#!/bin/sh
# Finding all the module names
-modules=`git grep 'add_library( *[a-zA-Z0-9]\+ *MODULE *[^)]\+' | \
+modules=`grep -r 'add_library( *[a-zA-Z0-9]\+ *MODULE *[^)]\+' $1 | \
sed 's/[^:]*:[^a]*add_library( *\([^ ]\+\).*/\1/p' | sort | uniq`
-words=`git grep '\"<Darktable>' $1 | \
+words=`grep -r '\"<Darktable>' $1 | \
sed 's/[^"]*"\([^"]\+\)"[^"]*/\1/' | tr '/' '\n' | \
sort | uniq`
--
1.7.1