Project

General

Profile

Patch #865 » exiv-0.23-locale.patch

Fix sed command for special locales - Mario anyc, 03 Nov 2012 09:40

View differences:

src/Makefile 2012-11-03 17:28:01.510336333 +0100
214 214

  
215 215
%.ii: %.cpp
216 216
	set -e; \
217
	$(CXXCPP) $(CPPFLAGS) -DEXV_BUILDING_LIB=1 $< | sed '/^[ 	]*$$/d' > $@
217
	$(CXXCPP) $(CPPFLAGS) -DEXV_BUILDING_LIB=1 $< | LC_ALL=C sed '/^[ 	]*$$/d' > $@
218 218

  
219 219
# ******************************************************************************
220 220
# Targets
......
231 231
actions.cpp basicio.cpp exif.cpp exiv2.cpp futils.cpp image.cpp jpgimage.cpp utils.cpp: exv_conf.h
232 232

  
233 233
exv_conf.h: $(top_srcdir)/config/config.h
234
	sed 's/#define \([A-Z]\)/#define EXV_\1/; s/#undef \([A-Z]\)/#undef EXV_\1/' < $< > $@
234
	LC_ALL=C sed 's/#define \([A-Z]\)/#define EXV_\1/; s/#undef \([A-Z]\)/#undef EXV_\1/' < $< > $@
235 235

  
236 236
$(LIBTOOL): $(LIBTOOL_DEPS)
237 237
	$(SHELL) $(top_srcdir)/config.status --recheck
(2-2/2)