mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-03 19:03:24 +00:00
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.
This commit is contained in:
parent
600d4768d8
commit
d036bcdffe
2 changed files with 12 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2012-11-02 Glenn Morris <rgm@gnu.org>
|
||||||
|
|
||||||
|
* Makefile.in (EMACS_ICON): New variable.
|
||||||
|
(install-etc): Use EMACS_ICON to allow choice of icon.
|
||||||
|
|
||||||
2012-10-26 Glenn Morris <rgm@gnu.org>
|
2012-10-26 Glenn Morris <rgm@gnu.org>
|
||||||
|
|
||||||
* Makefile.in (EMACS_NAME): New variable.
|
* Makefile.in (EMACS_NAME): New variable.
|
||||||
|
|
|
@ -632,6 +632,11 @@ install-man:
|
||||||
done
|
done
|
||||||
|
|
||||||
## Install those items from etc/ that need to end up elsewhere.
|
## Install those items from etc/ that need to end up elsewhere.
|
||||||
|
|
||||||
|
## If you prefer, choose "emacs22" at installation time.
|
||||||
|
## Note: emacs22 does not have all the resolutions.
|
||||||
|
EMACS_ICON=emacs
|
||||||
|
|
||||||
install-etc:
|
install-etc:
|
||||||
umask 022; ${MKDIR_P} $(DESTDIR)${desktopdir}
|
umask 022; ${MKDIR_P} $(DESTDIR)${desktopdir}
|
||||||
tmp=etc/emacs.tmpdesktop; rm -f $${tmp}; \
|
tmp=etc/emacs.tmpdesktop; rm -f $${tmp}; \
|
||||||
|
@ -646,10 +651,10 @@ install-etc:
|
||||||
for dir in */*/apps */*/mimetypes; do \
|
for dir in */*/apps */*/mimetypes; do \
|
||||||
[ -d $${dir} ] || continue ; \
|
[ -d $${dir} ] || continue ; \
|
||||||
( cd $${thisdir}; ${MKDIR_P} $(DESTDIR)${icondir}/$${dir} ) ; \
|
( cd $${thisdir}; ${MKDIR_P} $(DESTDIR)${icondir}/$${dir} ) ; \
|
||||||
for icon in $${dir}/emacs[.-]*; do \
|
for icon in $${dir}/${EMACS_ICON}[.-]*; do \
|
||||||
[ -r $${icon} ] || continue ; \
|
[ -r $${icon} ] || continue ; \
|
||||||
ext=`echo "$${icon}" | sed -e 's|.*\.||'`; \
|
ext=`echo "$${icon}" | sed -e 's|.*\.||'`; \
|
||||||
dest=`echo "$${icon}" | sed -e 's|.*/||' -e "s|\.$${ext}$$||" -e '$(TRANSFORM)'`.$${ext} ; \
|
dest=`echo "$${icon}" | sed -e 's|.*/||' -e "s|\.$${ext}$$||" -e 's/$(EMACS_ICON)/emacs/' -e '$(TRANSFORM)'`.$${ext} ; \
|
||||||
( cd $${thisdir}; \
|
( cd $${thisdir}; \
|
||||||
${INSTALL_DATA} ${iconsrcdir}/$${icon} $(DESTDIR)${icondir}/$${dir}/$${dest} ) \
|
${INSTALL_DATA} ${iconsrcdir}/$${icon} $(DESTDIR)${icondir}/$${dir}/$${dest} ) \
|
||||||
|| exit 1; \
|
|| exit 1; \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue