--- automake-stable-1.4p5-5.sh.orig 2001-11-25 21:33:04.000000000 -0800 +++ automake-stable-1.4p5-5.sh 2003-09-17 17:38:25.000000000 -0700 @@ -44,10 +44,10 @@ prefix=/usr/autotool/stable docprefix=/usr sysconfdir=${prefix}/etc -path_old=${PATH} +path_old="${PATH}" prep() { - (export PATH=${prefix}/bin:${path_old} && \ + (export PATH="${prefix}/bin:${path_old}" && \ cd ${topdir} && \ tar xvzf ${src_orig_pkg} && \ cd ${topdir} && \ @@ -55,37 +55,37 @@ mkdir -p ${objdir} && \ mkdir -p ${instdir} && \ mkdir -p ${srcinstdir} && \ - export PATH=${path_old} ) + export PATH="${path_old}" ) } conf() { - (export PATH=${prefix}/bin:${path_old} && \ + (export PATH="${prefix}/bin:${path_old}" && \ cd ${objdir} && \ ${srcdir}/configure --build=${host} --target=${target} \ --srcdir=${srcdir} --prefix=${prefix} \ --exec-prefix=${prefix} --sysconfdir=${sysconfdir} \ --libdir=${prefix}/lib --includedir=/nonexistent/include && \ - export PATH=${path_old} ) + export PATH="${path_old}" ) } build() { - (export PATH=${prefix}/bin:${path_old} && \ + (export PATH="${prefix}/bin:${path_old}" && \ cd ${objdir} && \ make CFLAGS=-O2 && make info && \ - export PATH=${path_old} ) + export PATH="${path_old}" ) } check() { - (export PATH=${prefix}/bin:${path_old} && \ + (export PATH="${prefix}/bin:${path_old}" && \ cd ${objdir} && \ make check | tee ${checkfile} 2>&1 && \ - export PATH=${path_old} ) + export PATH="${path_old}" ) } clean() { - (export PATH=${prefix}/bin:${path_old} && \ + (export PATH="${prefix}/bin:${path_old}" && \ cd ${objdir} && \ make clean && \ - export PATH=${path_old} ) + export PATH="${path_old}" ) } install() { - (export PATH=${prefix}/bin:${path_old} && \ + (export PATH="${prefix}/bin:${path_old}" && \ cd ${objdir} && \ make install INSTALL=install \ prefix=${instdir}${prefix} \ @@ -111,10 +111,10 @@ ${srcdir}/THANKS ${instdir}${docprefix}/doc/${PKG}-${VER} && \ /usr/bin/install -m 644 ${srcdir}/CYGWIN-PATCHES/dirlist \ ${instdir}${prefix}/share/aclocal/dirlist && \ - export PATH=${path_old} ) + export PATH="${path_old}" ) } mkpatch() { - (export PATH=${prefix}/bin:${path_old} && \ + (export PATH="${prefix}/bin:${path_old}" && \ cd ${srcdir} && \ tar xvzf ${src_orig_pkg} && \ mv automake-${VER2} ../automake-${VER2}-orig && \ @@ -123,33 +123,33 @@ automake-${VER2}-orig automake-${VER2} > \ ${srcinstdir}/${src_patch_name} ; \ rm -rf automake-${VER2}-orig && \ - export PATH=${path_old} ) + export PATH="${path_old}" ) } strip() { - (export PATH=${prefix}/bin:${path_old} && \ + (export PATH="${prefix}/bin:${path_old}" && \ cd ${instdir} && \ find . -name "*.exe" | xargs strip && \ - export PATH=${path_old} ) + export PATH="${path_old}" ) } pkg() { - (export PATH=${prefix}/bin:${path_old} && \ + (export PATH="${prefix}/bin:${path_old}" && \ cd ${instdir} && \ tar cvjf ${bin_pkg} * && \ - export PATH=${path_old} ) + export PATH="${path_old}" ) } spkg() { (mkpatch && \ - export PATH=${prefix}/bin:${path_old} && \ + export PATH="${prefix}/bin:${path_old}" && \ cp ${src_orig_pkg} ${srcinstdir}/${src_orig_pkg_name} && \ cp $0 ${srcinstdir}/`basename $0` && \ cd ${srcinstdir} && \ tar cvjf ${src_pkg} * && \ - export PATH=${path_old} ) + export PATH="${path_old}" ) } finish() { - (export PATH=${prefix}/bin:${path_old} && \ + (export PATH="${prefix}/bin:${path_old}" && \ rm -rf ${srcdir} - export PATH=${path_old} ) + export PATH="${path_old}" ) } case $1 in prep) prep ; STATUS=$? ;; @@ -169,5 +169,5 @@ pkg && spkg && finish ; STATUS=$? ;; *) echo "Error: bad arguments" ; STATUS=1 ;; esac -export PATH=${path_old} +export PATH="${path_old}" exit ${STATUS}