1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
| | Use "find" instead of "git ls-files" to fill in the src/src.mk file
(Guix removes the .git directory, so we have to do this!)
diff --git a/make-mks b/make-mks
index f3edf10..5972ebf 100755
--- a/make-mks
+++ b/make-mks
@@ -6,21 +6,17 @@ case "$0" in
;;
esac
-# Bail if not under git
-git rev-parse
-
trap 'rm -f src/src.mk lib/medida.mk lib/lib.mk' 0
message="# This file was generated by make-mks; don't edit it by hand."
-# Use only files git knows about, to avoid picking up autogenrated
-# files or other random cruft. When adding a new file foo.cpp, you
-# must run "git add -N foo.cpp" before running this script.
+# Since Guix is running not from git, we can just use find to fill
+# in this information instead of `git lsfiles`
(cd src
echo "$message"
- echo "SRC_H_FILES" = $(git ls-files '*.h' '*.[ih]pp')
- echo "SRC_CXX_FILES" = $(git ls-files '*.cpp')
- echo "SRC_X_FILES" = $(git ls-files '*.x')
+ echo "SRC_H_FILES" = $(find . -name '*.h') $(find . -name '*.[ih]pp')
+ echo "SRC_CXX_FILES" = $(find . -name '*.cpp')
+ echo "SRC_X_FILES" = $(find . -name '*.x')
) > src/src.mk
|