Commit 3029bbdb authored by joreland@mysql.com's avatar joreland@mysql.com

wl1744 - recommit stuff lost in corrupt clone

parent ad4d7a65
...@@ -3,6 +3,9 @@ ...@@ -3,6 +3,9 @@
dst=$1 dst=$1
shift shift
type=$1
shift
add_lib(){ add_lib(){
echo `dirname $2`/$1/`basename $2 | sed "s/\.[l]*a/$3.lib/g"` echo `dirname $2`/$1/`basename $2 | sed "s/\.[l]*a/$3.lib/g"`
} }
...@@ -13,17 +16,28 @@ out_tls_rel= ...@@ -13,17 +16,28 @@ out_tls_rel=
out_tls_deb= out_tls_deb=
for i in $* for i in $*
do do
# mysql VC++ project files have for some unknown reason
# choosen NOT to put libdbug.lib in $(topdir)./dbug but rather in $(topdir)
# the same goes for mysys and strings
lib=$i
case $i in
*libdbug.a | *libmysys.a | *libmystrings.a)
lib=`echo $i | sed s'!dbug\/lib!!' | sed 's!mysys\/lib!!' | sed 's!strings\/libmy!!'`
echo "Changing from $i to $lib"
;;
esac
if [ `echo $i | grep -c gcc` -eq 0 ] if [ `echo $i | grep -c gcc` -eq 0 ]
then then
out_rel="${out_rel} `add_lib lib_release $i`" out_rel="${out_rel} `add_lib lib_release $lib`"
out_deb="${out_deb} `add_lib lib_debug $i`" out_deb="${out_deb} `add_lib lib_debug $lib`"
out_tls_rel="${out_tls_rel} `add_lib lib_release $i _tls`" out_tls_rel="${out_tls_rel} `add_lib lib_release $lib _tls`"
out_tls_deb="${out_tls_deb} `add_lib lib_debug $i _tls`" out_tls_deb="${out_tls_deb} `add_lib lib_debug $lib _tls`"
fi fi
done done
fix(){ fix(){
echo "# ADD BASE LIB32 $*\n# ADD LIB32 $*\n" echo "# ADD BASE ${type}32 $*\n# ADD ${type}32 $*\n"
} }
if [ "$out_rel" ] if [ "$out_rel" ]
......
...@@ -4,5 +4,5 @@ dst=$1 ...@@ -4,5 +4,5 @@ dst=$1
shift shift
out=`echo $* | sed 's!\([^ ]*\)!# Begin Source File\\\nSOURCE=\1\\\n# End Source File\\\n!g'` out=`echo $* | sed 's!\([^ ]*\)!# Begin Source File\\\nSOURCE=\1\\\n# End Source File\\\n!g'`
sed -e "s/@sources@/$out/g" $dst > /tmp/$dst.$$ sed -e "s!@sources@!$out!g" $dst > /tmp/$dst.$$
mv /tmp/$dst.$$ $dst mv /tmp/$dst.$$ $dst
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment