# HG changeset patch # User "Yann E. MORIN" # Date 1240257436 0 # Node ID 7439f29a0476988a587f5ca722b0aa7931216c02 # Parent 5bfdfe1a4a6fe4848030dc4a610b8e51eb080f0d Set the execute bit on generated script at build time, not install time. Do not advertise "make install" when ./configure-d with "--local". -------- diffstat follows -------- /trunk/configure | 8 5 3 0 +++++--- /trunk/Makefile.in | 10 3 7 0 +++------- 2 files changed, 8 insertions(+), 10 deletions(-) diff -r 5bfdfe1a4a6f -r 7439f29a0476 Makefile.in --- a/Makefile.in Sun Apr 19 17:06:49 2009 +0000 +++ b/Makefile.in Mon Apr 20 19:57:16 2009 +0000 @@ -104,6 +104,7 @@ # Build rules build-bin: ct-ng scripts/crosstool-NG.sh scripts/saveSample.sh + @chmod 755 $^ build-lib: paths.mk @@ -168,15 +169,10 @@ #-------------------------------------- # Check for --local setup -ifeq ($(strip $(LOCAL)),1) +ifeq ($(strip $(LOCAL)),y) real-install: - @echo " CHMOD 'ct-ng'" - @chmod a+x ct-ng - @echo " CHMOD 'scripts/crosstool-NG.sh'" - @chmod a+x scripts/crosstool-NG.sh - @echo " CHMOD 'scripts/saveSample.sh'" - @chmod a+x scripts/saveSample.sh + @true real-uninstall: @true diff -r 5bfdfe1a4a6f -r 7439f29a0476 configure --- a/configure Sun Apr 19 17:06:49 2009 +0000 +++ b/configure Mon Apr 20 19:57:16 2009 +0000 @@ -246,7 +246,7 @@ while [ $# -ne 0 ]; do case "$1" in - --local) LOCAL_set=1; shift;; + --local) LOCAL_set="y"; shift;; --prefix*) set_prefix "$1" "$2" && shift || shift 2;; --bindir*) set_bindir "$1" "$2" && shift || shift 2;; --libdir*) set_libdir "$1" "$2" && shift || shift 2;; @@ -262,7 +262,7 @@ [ -z "${PREFIX}" ] && set_prefix "" "${PREFIX_DEFAULT}" # Special case when installing locally -if [ "${LOCAL_set}" = "1" ]; then +if [ "${LOCAL_set}" = "y" ]; then set_prefix "" "$( pwd )" set_bindir "" "$( pwd )" set_libdir "" "$( pwd )" @@ -419,5 +419,7 @@ Now run: make - make install __EOF__ +if [ "${LOCAL_set}" = "y" ]; then + printf " make install\n" +fi