| 1 |
Description: rebuild_codemirror |
| 2 |
Upstream ships codemirror as prebuilt. |
| 3 |
Since it's removed in debian sources, we have to rebuild it on compile time |
| 4 |
--- a/src/editor/libs/Makefile-codemirror |
| 5 |
+++ b/src/editor/libs/Makefile-codemirror |
| 6 |
@@ -6,7 +6,7 @@ |
| 7 |
|
| 8 |
all: |
| 9 |
mkdir -p "$(DESTDIR)" |
| 10 |
- cd codemirror && cp -r addon keymap lib mode theme LICENSE "$(DESTDIR)"/ |
| 11 |
+ cd codemirror && rollup -c && cp -r addon keymap lib mode theme LICENSE "$(DESTDIR)"/ |
| 12 |
# Clean unnecessary files within "mode" |
| 13 |
find "$(DESTDIR)"/mode/ -type f -name '*.html' -exec rm -f {} + |
| 14 |
find "$(DESTDIR)"/mode/ -type f -name 'test.js' -exec rm -f {} + |