diff options
| author | Glenn Morris | 2012-11-02 18:22:11 -0400 |
|---|---|---|
| committer | Glenn Morris | 2012-11-02 18:22:11 -0400 |
| commit | d036bcdffe9acef3ca4205344e25c041ffc76482 (patch) | |
| tree | c0e0b005ca66ed0de2300e369b605ffef5b4fa0b | |
| parent | 600d4768d809be989d452dbf6aead5e788112c85 (diff) | |
| download | emacs-d036bcdffe9acef3ca4205344e25c041ffc76482.tar.gz emacs-d036bcdffe9acef3ca4205344e25c041ffc76482.zip | |
Allow choice of icon style at install time
This feature is intentionally not advertised
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=12536#40
* Makefile.in (EMACS_ICON): New variable.
(install-etc): Use EMACS_ICON to allow choice of icon.
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | Makefile.in | 9 |
2 files changed, 12 insertions, 2 deletions
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-11-02 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * Makefile.in (EMACS_ICON): New variable. | ||
| 4 | (install-etc): Use EMACS_ICON to allow choice of icon. | ||
| 5 | |||
| 1 | 2012-10-26 Glenn Morris <rgm@gnu.org> | 6 | 2012-10-26 Glenn Morris <rgm@gnu.org> |
| 2 | 7 | ||
| 3 | * Makefile.in (EMACS_NAME): New variable. | 8 | * Makefile.in (EMACS_NAME): New variable. |
diff --git a/Makefile.in b/Makefile.in index 78630ef58ff..9b7bf795b84 100644 --- a/Makefile.in +++ b/Makefile.in | |||
| @@ -632,6 +632,11 @@ install-man: | |||
| 632 | done | 632 | done |
| 633 | 633 | ||
| 634 | ## Install those items from etc/ that need to end up elsewhere. | 634 | ## Install those items from etc/ that need to end up elsewhere. |
| 635 | |||
| 636 | ## If you prefer, choose "emacs22" at installation time. | ||
| 637 | ## Note: emacs22 does not have all the resolutions. | ||
| 638 | EMACS_ICON=emacs | ||
| 639 | |||
| 635 | install-etc: | 640 | install-etc: |
| 636 | umask 022; ${MKDIR_P} $(DESTDIR)${desktopdir} | 641 | umask 022; ${MKDIR_P} $(DESTDIR)${desktopdir} |
| 637 | tmp=etc/emacs.tmpdesktop; rm -f $${tmp}; \ | 642 | tmp=etc/emacs.tmpdesktop; rm -f $${tmp}; \ |
| @@ -646,10 +651,10 @@ install-etc: | |||
| 646 | for dir in */*/apps */*/mimetypes; do \ | 651 | for dir in */*/apps */*/mimetypes; do \ |
| 647 | [ -d $${dir} ] || continue ; \ | 652 | [ -d $${dir} ] || continue ; \ |
| 648 | ( cd $${thisdir}; ${MKDIR_P} $(DESTDIR)${icondir}/$${dir} ) ; \ | 653 | ( cd $${thisdir}; ${MKDIR_P} $(DESTDIR)${icondir}/$${dir} ) ; \ |
| 649 | for icon in $${dir}/emacs[.-]*; do \ | 654 | for icon in $${dir}/${EMACS_ICON}[.-]*; do \ |
| 650 | [ -r $${icon} ] || continue ; \ | 655 | [ -r $${icon} ] || continue ; \ |
| 651 | ext=`echo "$${icon}" | sed -e 's|.*\.||'`; \ | 656 | ext=`echo "$${icon}" | sed -e 's|.*\.||'`; \ |
| 652 | dest=`echo "$${icon}" | sed -e 's|.*/||' -e "s|\.$${ext}$$||" -e '$(TRANSFORM)'`.$${ext} ; \ | 657 | dest=`echo "$${icon}" | sed -e 's|.*/||' -e "s|\.$${ext}$$||" -e 's/$(EMACS_ICON)/emacs/' -e '$(TRANSFORM)'`.$${ext} ; \ |
| 653 | ( cd $${thisdir}; \ | 658 | ( cd $${thisdir}; \ |
| 654 | ${INSTALL_DATA} ${iconsrcdir}/$${icon} $(DESTDIR)${icondir}/$${dir}/$${dest} ) \ | 659 | ${INSTALL_DATA} ${iconsrcdir}/$${icon} $(DESTDIR)${icondir}/$${dir}/$${dest} ) \ |
| 655 | || exit 1; \ | 660 | || exit 1; \ |