Ticket #97: charset-locale-alias.patch

File charset-locale-alias.patch, 1.7 KB (added by slavazanko, 15 years ago)
  • intl/Makefile.in

    #
    # Not really sure what it does exactly, seems to have something
    # to do w/ intl + charset.alias file
    #
    # Source:	Gentoo Portage
    # Reference:	mc-4.6.1
    # Submit-By:	Enrico Weigelt, metux IT service <weigelt metux de>
    # Submit-Date:	2008-12-26
    # State:	new
    #
    diff -ruN mc-4.6.1.orig/intl/Makefile.in mc-4.6.1/intl/Makefile.in
    old new  
    156156          test @GLIBC21@ != no || $(mkinstalldirs) $(DESTDIR)$(libdir); \ 
    157157          temp=$(DESTDIR)$(libdir)/t-charset.alias; \ 
    158158          dest=$(DESTDIR)$(libdir)/charset.alias; \ 
    159           if test -f $(DESTDIR)$(libdir)/charset.alias; then \ 
    160             orig=$(DESTDIR)$(libdir)/charset.alias; \ 
    161             sed -f ref-add.sed $$orig > $$temp; \ 
    162             $(INSTALL_DATA) $$temp $$dest; \ 
    163             rm -f $$temp; \ 
    164           else \ 
     159          if ! test -f $(libdir)/charset.alias; then \ 
    165160            if test @GLIBC21@ = no; then \ 
    166161              orig=charset.alias; \ 
    167162              sed -f ref-add.sed $$orig > $$temp; \ 
     
    170165            fi; \ 
    171166          fi; \ 
    172167          $(mkinstalldirs) $(DESTDIR)$(localedir); \ 
    173           test -f $(DESTDIR)$(localedir)/locale.alias \ 
    174             && orig=$(DESTDIR)$(localedir)/locale.alias \ 
    175             || orig=$(srcdir)/locale.alias; \ 
    176           temp=$(DESTDIR)$(localedir)/t-locale.alias; \ 
    177           dest=$(DESTDIR)$(localedir)/locale.alias; \ 
    178           sed -f ref-add.sed $$orig > $$temp; \ 
    179           $(INSTALL_DATA) $$temp $$dest; \ 
    180           rm -f $$temp; \ 
     168          if ! test -f $(localedir)/locale.alias; then \ 
     169            orig=$(srcdir)/locale.alias; \ 
     170            temp=$(DESTDIR)$(localedir)/t-locale.alias; \ 
     171            dest=$(DESTDIR)$(localedir)/locale.alias; \ 
     172            sed -f ref-add.sed $$orig > $$temp; \ 
     173            $(INSTALL_DATA) $$temp $$dest; \ 
     174            rm -f $$temp; \ 
     175          fi; \ 
    181176        else \ 
    182177          : ; \ 
    183178        fi