~mdcallag/+junk/5.1-map

« back to all changes in this revision

Viewing changes to scripts/make_binary_distribution.sh

  • Committer: msvensson at pilot
  • Date: 2007-04-24 09:11:45 UTC
  • mfrom: (2469.1.106)
  • Revision ID: sp1r-msvensson@pilot.blaudden-20070424091145-10463
Merge pilot.blaudden:/home/msvensson/mysql/my51-m-mysql_upgrade
into  pilot.blaudden:/home/msvensson/mysql/mysql-5.1-maint

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
  esac
55
55
done
56
56
 
 
57
# Avoid too long command lines for cp (bug#27489)
 
58
MCP() {
 
59
  for i
 
60
  do
 
61
    last=$i
 
62
  done
 
63
  for i
 
64
  do
 
65
    if test "x$i" != "x$last"
 
66
    then
 
67
      cp -p $i $last
 
68
    fi
 
69
  done
 
70
}
 
71
 
57
72
# Remove vendor from $system
58
73
system=`echo $system | sed -e 's/[a-z]*-\(.*\)/\1/g'`
59
74
 
117
132
 chmod o-rwx $BASE/data $BASE/data/*
118
133
fi
119
134
 
120
 
# Copy files if they exists, warn for those that don't
 
135
# Copy files if they exists, warn for those that don't.
 
136
# Note that when listing files to copy, we might list the file name
 
137
# twice, once in the directory location where it is build, and a
 
138
# second time in the ".libs" location. In the case the firs one
 
139
# is a wrapper script, the second one will overwrite it with the
 
140
# binary file.
121
141
copyfileto()
122
142
{
123
143
  destdir=$1
168
188
# For all other platforms:
169
189
else
170
190
  BIN_FILES="$BIN_FILES \
 
191
    server-tools/instance-manager/.libs/mysqlmanager \
171
192
    client/.libs/mysql client/.libs/mysqlshow client/.libs/mysqladmin \
172
193
    client/.libs/mysqlslap \
173
194
    client/.libs/mysqldump client/.libs/mysqlimport \
253
274
         mysql-test/valgrind.supp \
254
275
         netware/mysql_test_run.nlm netware/install_test_db.ncf
255
276
 
256
 
$CP mysql-test/lib/*.pl  $BASE/mysql-test/lib
257
 
$CP mysql-test/t/*.def $BASE/mysql-test/t
258
 
$CP mysql-test/include/*.inc $BASE/mysql-test/include
259
 
$CP mysql-test/include/*.test $BASE/mysql-test/include
260
 
$CP mysql-test/t/*.def $BASE/mysql-test/t
261
 
$CP mysql-test/std_data/*.dat mysql-test/std_data/*.frm \
 
277
MCP mysql-test/lib/*.pl  $BASE/mysql-test/lib
 
278
MCP mysql-test/t/*.def $BASE/mysql-test/t
 
279
MCP mysql-test/include/*.inc $BASE/mysql-test/include
 
280
MCP mysql-test/include/*.test $BASE/mysql-test/include
 
281
MCP mysql-test/t/*.def $BASE/mysql-test/t
 
282
MCP mysql-test/std_data/*.dat mysql-test/std_data/*.frm \
262
283
    mysql-test/std_data/*.MYD mysql-test/std_data/*.MYI \
263
284
    mysql-test/std_data/*.pem mysql-test/std_data/Moscow_leap \
264
285
    mysql-test/std_data/des_key_file mysql-test/std_data/*.*001 \
265
286
    mysql-test/std_data/*.cnf mysql-test/std_data/*.MY* \
266
287
    $BASE/mysql-test/std_data
267
 
$CP mysql-test/t/*.test $BASE/mysql-test/t
268
 
$CP mysql-test/t/*.imtest mysql-test/t/*.disabled $BASE/mysql-test/t
269
 
$CP mysql-test/t/*.opt mysql-test/t/*.slave-mi $BASE/mysql-test/t
270
 
$CP mysql-test/t/*.sh mysql-test/t/*.sql $BASE/mysql-test/t
271
 
$CP mysql-test/r/*.result  $BASE/mysql-test/r
272
 
$CP mysql-test/r/*.require $BASE/mysql-test/r
273
 
$CP mysql-test/extra/binlog_tests/*.test $BASE/mysql-test/extra/binlog_tests
274
 
$CP mysql-test/extra/rpl_tests/*.test $BASE/mysql-test/extra/rpl_tests
 
288
MCP mysql-test/t/*.test $BASE/mysql-test/t
 
289
MCP mysql-test/t/*.imtest mysql-test/t/*.disabled $BASE/mysql-test/t
 
290
MCP mysql-test/t/*.opt mysql-test/t/*.slave-mi $BASE/mysql-test/t
 
291
MCP mysql-test/t/*.sh mysql-test/t/*.sql $BASE/mysql-test/t
 
292
MCP mysql-test/r/*.result  $BASE/mysql-test/r
 
293
MCP mysql-test/r/*.require $BASE/mysql-test/r
 
294
MCP mysql-test/extra/binlog_tests/*.test $BASE/mysql-test/extra/binlog_tests
 
295
MCP mysql-test/extra/rpl_tests/*.test $BASE/mysql-test/extra/rpl_tests
275
296
 
276
297
if [ $BASE_SYSTEM != "netware" ] ; then
277
298
  chmod a+x $BASE/bin/*
303
324
# Copy system dependent files
304
325
#
305
326
if [ $BASE_SYSTEM = "netware" ] ; then
306
 
  echo "CREATE DATABASE mysql;" > $BASE/bin/init_db.sql
307
 
  echo "CREATE DATABASE test;" >> $BASE/bin/init_db.sql
308
 
  sh ./scripts/mysql_create_system_tables.sh real "" "%" 0 \
309
 
      >> $BASE/bin/init_db.sql
310
 
  sh ./scripts/mysql_create_system_tables.sh test "" "%" 0 \
311
 
      > $BASE/bin/test_db.sql
312
327
  ./scripts/fill_help_tables < ./Docs/manual.texi >> ./netware/init_db.sql
313
328
fi
314
329