xorg: improvments to buildx.sh

master
Jay Sorg 12 years ago
parent 204d6bbde1
commit 7e3acbfd26

@ -27,6 +27,11 @@ download_file()
{ {
file=$1 file=$1
# if we already have the file, don't re-download it
if [ -r downloads/$file ]; then
return 0
fi
cd downloads cd downloads
echo "downloading file $file" echo "downloading file $file"
@ -145,24 +150,16 @@ remove_modules()
cd .. cd ..
} }
make_it() extract_it()
{ {
mod_file=$1 mod_file=$1
mod_name=$2 mod_name=$2
mod_args=$3 mod_args=$3
count=`expr $count + 1` if [ -e cookies/$mod_name.extracted ]; then
# if a cookie with $mod_name exists...
if [ -e cookies/$mod_name ]; then
# ...package has already been built
return 0 return 0
fi fi
echo ""
echo "*** processing module $mod_name ($count of $num_modules) ***"
echo ""
# download file # download file
download_file $mod_file download_file $mod_file
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
@ -202,17 +199,51 @@ make_it()
exit 1 exit 1
fi fi
# make module cd ../..
make
touch cookies/$mod_name.extracted
}
make_it()
{
mod_file=$1
mod_name=$2
mod_args=$3
count=`expr $count + 1`
# if a cookie with $mod_name exists...
if [ -e cookies/$mod_name.installed ]; then
# ...package has already been installed
return 0
fi
echo ""
echo "*** processing module $mod_name ($count of $num_modules) ***"
echo ""
extract_it $mod_file $mod_name $mod_args
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo "" echo ""
echo "make failed for module $mod_name" echo "extract failed for module $mod_name"
echo "" echo ""
exit 1 exit 1
fi fi
# make module
if [ ! -e cookies/$mod_name.made ]; then
(cd build_dir/$mod_name ; make)
if [ $? -ne 0 ]; then
echo ""
echo "make failed for module $mod_name"
echo ""
exit 1
fi
touch cookies/$mod_name.made
fi
# install module # install module
make install (cd build_dir/$mod_name ; make install)
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo "" echo ""
echo "make install failed for module $mod_name" echo "make install failed for module $mod_name"
@ -224,12 +255,11 @@ make_it()
# so Mesa builds using this python version # so Mesa builds using this python version
case "$mod_name" in case "$mod_name" in
*Python-2*) *Python-2*)
ln -s python $PREFIX_DIR/bin/python2 (cd build_dir/$mod_name ; ln -s python $PREFIX_DIR/bin/python2)
;; ;;
esac esac
cd ../.. touch cookies/$mod_name.installed
touch cookies/$mod_name
return 0 return 0
} }
@ -345,6 +375,10 @@ export X11RDPBASE
cd rdp cd rdp
make make
if [ $? -ne 0 ]; then
echo "error building rdp"
exit 1
fi
# this will copy the build X server with the other X server binaries # this will copy the build X server with the other X server binaries
strip X11rdp strip X11rdp

Loading…
Cancel
Save