Bruce Dubbs wrote:
> That said, painful as it is, I'm not in favor of inserting a fairly
> complex script into each section of Xorg-7.1. Perhaps suggested scripts
> could be placed in the wiki to help this issue.
>
This might be wiki material.
#!/bin/bash
set -e
donefile=$(basename $PWD).done
for package in $(cat $PWD-7.1.wget); do
packagedir=$(sed "s/.tar.bz2//" <<< $package)
if grep "^$packagedir$" $donefile >/dev/null; then
echo "$packagedir is already built... Skipping"
continue;
fi
if [ -d "$packagedir" ]; then
ans=""
while [ "$ans" != "n" -a "$ans" != "y" ]; do
echo -n "(y) to remove $packagedir or (n) to skip: "
read -n1 ans
ans=$(tr [:upper:] [:lower:] <<< $ans)
echo
done
if [ "$ans" = "n" ]; then
continue;
fi
rm -rf $packagedir
fi
tar xvf $package
cd $packagedir
for package_patch in ../$packagedir-*.patch; do
if [ "$package_patch" != "../$packagedir-*.patch" ]; then
patch -Np1 -i $package_patch
fi
done
./configure $XORG_CONFIG $@
make
make install
cd ..
rm -rf $packagedir
echo $packagedir >> $donefile
done
\
--
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page