Mercurial > mxe-octave
comparison binary-dist-rules.mk @ 4913:0958cf066f1a
Don't strip files starting with a shebang (bug #55281).
* binary-dist-rules.mk: Only strip files that don't start with "#!".
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Sun, 30 Dec 2018 15:15:24 +0100 |
parents | bcfecd611e1b |
children | a059052f4807 |
comparison
equal
deleted
inserted
replaced
4912:dc299f683995 | 4913:0958cf066f1a |
---|---|
169 ifeq ($(STRIP_DIST_FILES),yes) | 169 ifeq ($(STRIP_DIST_FILES),yes) |
170 ifeq ($(MXE_WINDOWS_BUILD),yes) | 170 ifeq ($(MXE_WINDOWS_BUILD),yes) |
171 define strip-dist-files | 171 define strip-dist-files |
172 echo "stripping files..." | 172 echo "stripping files..." |
173 for f in `find $(OCTAVE_DIST_DIR) -name '*.dll' -o -name '*.exe' -o -name '*.oct' | $(GREP) -v "notepad++" `; do \ | 173 for f in `find $(OCTAVE_DIST_DIR) -name '*.dll' -o -name '*.exe' -o -name '*.oct' | $(GREP) -v "notepad++" `; do \ |
174 $(MXE_STRIP) $$f; \ | 174 if [ "$$(head -n1 $$f | cut -c1-2)" != "#!" ]; then \ |
175 $(MXE_STRIP) $$f; \ | |
176 fi; \ | |
175 done | 177 done |
176 endef | 178 endef |
177 else | 179 else |
178 define strip-dist-files | 180 define strip-dist-files |
179 echo "stripping files..." | 181 echo "stripping files..." |