Hello,
I have finally overcome my 20 year hatred of scripts and am in the
process of creating bash scripts for all the packages in BLFS.
As packages get upgraded all the time, what I need to do is to have wild
cards to match the package tarballs. I have achieved that with regards
to the below example, however some packages have additional characters
such as boost has boost_1_56_0.tar.bz2 so the wild card match of ? would
not work in this case.
I have not been able to work out how to do a match for this type of
file.
Could someone please assist in this? I only want to know how to do it
in bash thanks.
#!/bin/bash
export PROGRAM=apr-1.5.?
tar -xvf $PROGRAM.tar.?z*
pushd $PROGRAM
./configure --prefix=/usr \
--disable-static \
--with-installbuilddir=/usr/share/apr-1/build &&
make -j2 &&
make install
popd
rm -rf $PROGRAM
Regards,
Christopher.
--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page