From 27fc1e33020bc5138850489843812b6b0b25768d Mon Sep 17 00:00:00 2001 From: "Donald A. Peterson" Date: Tue, 9 Apr 2002 15:52:24 +0000 Subject: [PATCH] Set proper bits on files when INSTALLing svn: r906 --- gramps/src/Makefile.in | 18 ++++++++++++++---- gramps/src/docgen/Makefile.in | 2 +- gramps/src/filters/Makefile.in | 2 +- 3 files changed, 16 insertions(+), 6 deletions(-) diff --git a/gramps/src/Makefile.in b/gramps/src/Makefile.in index 5a75a9aa2..ad2569f44 100644 --- a/gramps/src/Makefile.in +++ b/gramps/src/Makefile.in @@ -17,6 +17,13 @@ PYSRCS := ${wildcard *.py} PYOBJS = ${PYSRCS:.py=.pyo} +# List only those modules that need the executable bit set +EXE1 = AddMedia.py EditSource.py gramps.py gramps_main.py + +# Add their byte-compiled counterparts to the list... +EXE2 = ${EXE1:.py=.pyo} +EXES = ${EXE1} ${EXE2} + all: ${intl_libs} ${PYOBJS} intl15.so: intl.c @@ -34,15 +41,18 @@ intl22.so: intl.c install: ${INSTALL} -d ${datadir} (cd ${datadir} ;rm -f *.py *.pyo *.pyc *.glade *.xpm *.so) - ${INSTALL} *.py *.jpg *.pyo *.png *.glade *.xpm *.so ${datadir} + ${INSTALL} -m 644 *.py *.jpg *.pyo *.png *.glade *.xpm *.so ${datadir} + for i in ${EXES}; do \ + chmod 755 ${datadir}/$$i; \ + done ${INSTALL} -d ${prefix}/share/pixmaps - ${INSTALL} gramps.png ${prefix}/share/pixmaps + ${INSTALL} -m 644 gramps.png ${prefix}/share/pixmaps ${INSTALL} -d ${prefix}/share/gnome/apps/Applications - ${INSTALL} gramps.desktop ${prefix}/share/gnome/apps/Applications + ${INSTALL} -m 644 gramps.desktop ${prefix}/share/gnome/apps/Applications for i in ${LANG}; do\ ${INSTALL} -d ${prefix}/share/locale/$$i; \ ${INSTALL} -d ${prefix}/share/locale/$$i/LC_MESSAGES; \ - ${INSTALL} locale/$$i/LC_MESSAGES/gramps.mo ${prefix}/share/locale/$$i/LC_MESSAGES; \ + ${INSTALL} -m 644 locale/$$i/LC_MESSAGES/gramps.mo ${prefix}/share/locale/$$i/LC_MESSAGES; \ done uninstall: diff --git a/gramps/src/docgen/Makefile.in b/gramps/src/docgen/Makefile.in index b8222d5a1..d214c034c 100644 --- a/gramps/src/docgen/Makefile.in +++ b/gramps/src/docgen/Makefile.in @@ -19,7 +19,7 @@ all: ${PYOBJS} install: ${INSTALL} -d ${docgen} - ${INSTALL} *.py *.pyo ${docgen} + ${INSTALL} -m 644 *.py *.pyo ${docgen} uninstall: rm ${docgen}/*.py ${docgen}/*.pyo diff --git a/gramps/src/filters/Makefile.in b/gramps/src/filters/Makefile.in index 04e469fdb..a10482e51 100644 --- a/gramps/src/filters/Makefile.in +++ b/gramps/src/filters/Makefile.in @@ -19,7 +19,7 @@ all: ${PYOBJS} install: ${INSTALL} -d ${plugins} - ${INSTALL} *.py *.pyo *.glade ${plugins} + ${INSTALL} -m 644 *.py *.pyo *.glade ${plugins} uninstall: rm ${plugins}/*.py ${plugins}/*.pyo ${plugins}/*.glade