This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
automake & libtool source package build script errors
- From: Doru Carastan <doru dot carastan at mvista dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 18 Sep 2003 16:30:59 -0700
- Subject: automake & libtool source package build script errors
- Organization: MontaVista Software, Inc.
Hello,
I have found a couple of source packages with
pkgName-pkgVersion-pkgRelease.sh scripts sensitive to the spaces that
one might have in the system DOS PATH. The scripts fail when the PATH
settings are saved/restored. The affected packages are at least the
following:
automake-1.7.5a
automake-devel-1.7.3
automake-stable-1.4
libtool-1.5a
libtool-devel-1.5
libtool-stable-1.4.3
Please consider the attached patch files.
Thank you,
--
Doru Carastan
*\\\///* WinHost Contractor
||\\//|| 408-992-4497
|||\/||| doru.carastan@montavista.com
--- libtool-stable-1.4.3-2.sh.orig 2003-08-17 23:03:20.000000000 -0700
+++ libtool-stable-1.4.3-2.sh 2003-09-18 15:38:46.000000000 -0700
@@ -53,7 +53,7 @@
prefix=/usr/autotool/stable
docprefix=/usr
sysconfdir=${prefix}/etc
-path_old=${PATH}
+path_old="${PATH}"
mkdirs() {
mkdir -p ${objdir} && \
@@ -70,39 +70,39 @@
)}
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 \
--mandir=${prefix}/share/man --infodir=${prefix}/share/info && \
- 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} \
@@ -128,11 +128,11 @@
/usr/bin/install -m 644 ${srcdir}/README \
${srcdir}/AUTHORS ${srcdir}/COPYING ${srcdir}/NEWS ${srcdir}/TODO \
${srcdir}/THANKS ${instdir}${docprefix}/share/doc/${PKG}-${VER} && \
- export PATH=${path_old}
+ export PATH="${path_old}"
)}
mkpatch() {
- (export PATH=${prefix}/bin:${path_old} && \
+ (export PATH="${prefix}/bin:${path_old}" && \
cd ${srcdir} && \
tar xv${opt_decomp}f ${src_orig_pkg} && \
mv libtool-${VER} ../libtool-${VER}-orig && \
@@ -141,7 +141,7 @@
libtool-${VER}-orig libtool-${VER} > \
${srcinstdir}/${src_patch_name} ; \
rm -rf libtool-${VER}-orig && \
- export PATH=${path_old}
+ export PATH="${path_old} "
)}
strip() {
@@ -150,26 +150,26 @@
)}
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
@@ -190,5 +190,5 @@
strip && pkg && spkg && finish ; STATUS=$? ;;
*) echo "Error: bad arguments" ; STATUS=1 ;;
esac
-export PATH=${path_old}
+export PATH="${path_old}"
exit ${STATUS}
--- libtool-devel-1.5-3.sh.orig 2003-08-17 22:37:50.000000000 -0700
+++ libtool-devel-1.5-3.sh 2003-09-18 11:00:34.000000000 -0700
@@ -58,7 +58,7 @@
pnoslash=`echo $prefix | sed -e 's#^/##'`
snoslash=`echo $sysconfdir | sed -e 's#^/##'`
dnoslash=`echo $docprefix | sed -e 's#^/##'`
-path_old=${PATH}
+path_old="${PATH}"
CFLAGS="-O2"
mkdirs() {
@@ -69,50 +69,50 @@
)}
prep() {
- (export PATH=${prefix}/bin:${path_old} && \
+ (export PATH="${prefix}/bin:${path_old}" && \
cd ${topdir} && \
tar xv${opt_decomp}f ${src_orig_pkg} && \
cd ${srcdir} && \
patch -p1 < ${src_patch} && \
mkdirs && \
cd ${srcdir} && \
- 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} \
--mandir=${prefix}/share/man --infodir=${prefix}/share/info \
--libdir=${prefix}/lib && \
- 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=${CFLAGS} && 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_dirs() {
- (export PATH=${prefix}/bin:${path_old} && \
+ (export PATH="${prefix}/bin:${path_old}" && \
for dn in ${docprefix}/share/doc/Cygwin ${docprefix}/share/doc/${PKG}-${VER} \
${docprefix}/share/info ${docprefix}/bin ${docprefix}/include \
${docprefix}/lib ; do
@@ -120,11 +120,11 @@
mkdir -p ${instdir}${dn} ; \
fi ; \
done && \
- export PATH=${path_old}
+ export PATH="${path_old}"
)}
install_extra() {
- (export PATH=${prefix}/bin:${path_old} && \
+ (export PATH="${prefix}/bin:${path_old}" && \
/usr/bin/install -m 644 ${srcdir}/CYGWIN-PATCHES/${PKG}.README \
${instdir}${docprefix}/share/doc/Cygwin/${PKG}-${VER}.README && \
/usr/bin/install -m 644 ${srcdir}/README \
@@ -136,21 +136,21 @@
cp ${instdir}${prefix}/lib/* ${instdir}${docprefix}/lib/ && \
la_munge && \
cp ${instdir}${prefix}/include/* ${instdir}${docprefix}/include/ && \
- export PATH=${path_old}
+ export PATH="${path_old}"
)}
la_munge() {
- (export PATH=${prefix}/bin:${path_old} && \
+ (export PATH="${prefix}/bin:${path_old}" && \
cd ${instdir}${docprefix}/lib && \
for fn in *.la ; do
cat $fn | sed -e "s#${prefix}/lib#${docprefix}/lib#g" > $fn.tmp
mv $fn.tmp $fn
done && \
- 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} \
@@ -167,11 +167,11 @@
fi && \
install_dirs && \
install_extra && \
- export PATH=${path_old}
+ export PATH="${path_old}"
)}
mkpatch() {
- (export PATH=${prefix}/bin:${path_old} && \
+ (export PATH="${prefix}/bin:${path_old}" && \
cd ${srcdir} && \
find . -name "autom4te.cache" | xargs rm -rf >/dev/null 2<&1
tar xv${opt_decomp}f ${src_orig_pkg} ; \
@@ -181,40 +181,40 @@
libtool-${VER}-orig libtool-${VER} > \
${srcinstdir}/${src_patch_name} ; \
rm -rf libtool-${VER}-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 "*.dll" | xargs strip >/dev/null 2>&1 ;
- 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_pkg2} ${pnoslash}/bin/*.dll \
${dnoslash}/bin/*.dll && \
tar cvjf ${bin_pkg} --exclude="${pnoslash}/bin/*.dll" \
--exclude="${dnoslash}/bin/*.dll" * && \
- 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
@@ -236,5 +236,5 @@
strip && pkg && spkg && finish ; STATUS=$? ;;
*) echo "Error: bad arguments" ; STATUS=1 ;;
esac
-export PATH=${path_old}
+export PATH="${path_old}"
exit ${STATUS}
--- automake-wrapper-1.7.5a-1.sh.orig 2003-07-19 02:17:11.000000000 -0700
+++ automake-wrapper-1.7.5a-1.sh 2003-09-17 18:44:59.000000000 -0700
@@ -53,7 +53,7 @@
stableprefix=/usr/autotool/stable
develprefix=/usr/autotool/devel
sysconfdir=${prefix}/etc
-path_old=${PATH}
+path_old="${PATH}"
mkdirs() {
(cd ${srcdir} && \
@@ -64,49 +64,49 @@
)}
prep() {
- (export PATH=${prefix}/bin:${path_old} && \
+ (export PATH="${prefix}/bin:${path_old}" && \
cd ${topdir} && \
tar xv${opt_decomp}f ${src_orig_pkg} && \
cd ${topdir} && \
patch -p0 < ${src_patch} && \
mkdirs && \
- 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} \
--with-devel-prefix=${develprefix} --with-stable-prefix=${stableprefix} \
--exec-prefix=${prefix} --sysconfdir=${sysconfdir} \
--libdir=${prefix}/lib && \
- 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 && \
- 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 DESTDIR=${instdir} && \
if [ -f ${instdir}${prefix}/info/dir ] ; then \
@@ -123,11 +123,11 @@
/usr/bin/install -m 644 ${srcdir}/README \
${srcdir}/AUTHORS ${srcdir}/COPYING ${srcdir}/NEWS \
${instdir}${prefix}/doc/${PKG}-${VER} && \
- export PATH=${path_old}
+ export PATH="${path_old}"
)}
mkpatch() {
- (export PATH=${prefix}/bin:${path_old} && \
+ (export PATH="${prefix}/bin:${path_old}" && \
cd ${srcdir} && \
rm -rf autom4te.cache && \
tar xv${opt_decomp}f ${src_orig_pkg} && \
@@ -137,39 +137,39 @@
automake-wrapper-${VER}-orig automake-wrapper-${VER} > \
${srcinstdir}/${src_patch_name} ; \
rm -rf automake-wrapper-${VER}-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 >/dev/null 2>&1 && \
find . -name "*.dll" | xargs strip >/dev/null 2>&1 && \
- 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() {
- (export PATH=${prefix}/bin:${path_old} && \
+ (export PATH="${prefix}/bin:${path_old}" && \
mkpatch && \
(cd $objdir && make dist) && \
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
@@ -191,5 +191,5 @@
pkg && spkg && finish ; STATUS=$? ;;
*) echo "Error: bad arguments" ; STATUS=1 ;;
esac
-export PATH=${path_old}
+export PATH="${path_old}"
exit ${STATUS}
--- automake-devel-1.7.3-1.sh.orig 2003-03-09 18:33:24.000000000 -0800
+++ automake-devel-1.7.3-1.sh 2003-09-17 18:11:43.000000000 -0700
@@ -52,7 +52,7 @@
prefix=/usr/autotool/devel
docprefix=/usr
sysconfdir=${prefix}/etc
-path_old=${PATH}
+path_old="${PATH}"
mkdirs() {
(cd ${topdir} && \
@@ -61,43 +61,43 @@
mkdir -p ${srcinstdir} )
}
prep() {
- (export PATH=${prefix}/bin:${path_old} && \
+ (export PATH="${prefix}/bin:${path_old}" && \
cd ${topdir} && \
tar xvjf ${src_orig_pkg} ; \
cd ${topdir} && \
patch -p0 < ${src_patch} && \
mkdirs && \
- 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 && \
- 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 DESTDIR=${instdir} &&
if [ -f ${instdir}${prefix}/info/dir ] ; then \
@@ -141,10 +141,10 @@
rm -f aclocal-${VERMAJ}.${VERMIN} && \
ln -s ../autotool/devel/bin/automake-${VERMAJ}.${VERMIN} automake-${VERMAJ}.${VERMIN} && \
ln -s ../autotool/devel/bin/aclocal-${VERMAJ}.${VERMIN} aclocal-${VERMAJ}.${VERMIN} ) && \
- export PATH=${path_old} )
+ export PATH="${path_old}" )
}
mkpatch() {
- (export PATH=${prefix}/bin:${path_old} && \
+ (export PATH="${prefix}/bin:${path_old}" && \
cd ${srcdir} && \
tar xvjf ${src_orig_pkg} ; \
mv automake-${VER2} ../automake-${VER2}-orig && \
@@ -153,33 +153,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 > /dev/null 2>&1 && \
- 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=$? ;;
@@ -200,5 +200,5 @@
pkg && spkg && finish ; STATUS=$? ;;
*) echo "Error: bad arguments" ; STATUS=1 ;;
esac
-export PATH=${path_old}
+export PATH="${path_old}"
exit ${STATUS}
--- 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}
--- libtool-wrapper-1.5a-1.sh.orig 2003-07-19 02:19:09.000000000 -0700
+++ libtool-wrapper-1.5a-1.sh 2003-09-18 16:08:48.000000000 -0700
@@ -53,7 +53,7 @@
stableprefix=/usr/autotool/stable
develprefix=/usr/autotool/devel
sysconfdir=${prefix}/etc
-path_old=${PATH}
+path_old="${PATH}"
mkdirs() {
(cd ${srcdir} && \
@@ -64,49 +64,49 @@
)}
prep() {
- (export PATH=${prefix}/bin:${path_old} && \
+ (export PATH="${prefix}/bin:${path_old}" && \
cd ${topdir} && \
tar xv${opt_decomp}f ${src_orig_pkg} ; \
cd ${topdir} && \
patch -p0 < ${src_patch} && \
mkdirs && \
- 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} \
--with-devel-prefix=${develprefix} --with-stable-prefix=${stableprefix} \
--exec-prefix=${prefix} --sysconfdir=${sysconfdir} \
--libdir=${prefix}/lib && \
- 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 && \
- 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 DESTDIR=${instdir} && \
if [ -f ${instdir}${prefix}/info/dir ] ; then \
@@ -123,11 +123,11 @@
/usr/bin/install -m 644 ${srcdir}/README \
${srcdir}/AUTHORS ${srcdir}/COPYING ${srcdir}/NEWS \
${instdir}${prefix}/doc/${PKG}-${VER} && \
- export PATH=${path_old}
+ export PATH="${path_old}"
)}
mkpatch() {
- (export PATH=${prefix}/bin:${path_old} && \
+ (export PATH="${prefix}/bin:${path_old}" && \
cd ${srcdir} && \
rm -rf autom4te.cache && \
tar xv${opt_decomp}f ${src_orig_pkg} ; \
@@ -137,39 +137,39 @@
libtool-wrapper-${VER}-orig libtool-wrapper-${VER} > \
${srcinstdir}/${src_patch_name} ; \
rm -rf libtool-wrapper-${VER}-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 >/dev/null 2<&1
find . -name "*.dll" | xargs strip >/dev/null 2<&1
- 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() {
- (export PATH=${prefix}/bin:${path_old} && \
+ (export PATH="${prefix}/bin:${path_old}" && \
mkpatch && \
(cd $objdir && make dist) && \
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
@@ -191,5 +191,5 @@
pkg && spkg && finish ; STATUS=$? ;;
*) echo "Error: bad arguments" ; STATUS=1 ;;
esac
-export PATH=${path_old}
+export PATH="${path_old}"
exit ${STATUS}
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/