mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
make_win_src_distribution.sh:
Clean up script, add needed modifications to generate a complete 4.0 Windows source package scripts/make_win_src_distribution.sh: Clean up script, add needed modifications to generate a complete 4.0 Windows source package
This commit is contained in:
@@ -107,6 +107,20 @@ done
|
|||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
|
# Convert argument file from unix to DOS text
|
||||||
|
#
|
||||||
|
|
||||||
|
unix_to_dos()
|
||||||
|
{
|
||||||
|
for arg do
|
||||||
|
print_debug "Replacing LF -> CRLF from '$arg'"
|
||||||
|
|
||||||
|
sed -e 's/$/\r/' $arg > $arg.tmp
|
||||||
|
rm -f $arg
|
||||||
|
mv $arg.tmp $arg
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Create a tmp dest directory to copy files
|
# Create a tmp dest directory to copy files
|
||||||
@@ -121,16 +135,11 @@ fi
|
|||||||
|
|
||||||
$CP -r $SOURCE/VC++Files $BASE
|
$CP -r $SOURCE/VC++Files $BASE
|
||||||
(
|
(
|
||||||
find $BASE \( -name "*.dsp" -o -name "*.dsw" \) -and -not -path \*SCCS\* -print
|
find $BASE \( -name "*.dsp" -o -name "*.dsw" -o -name "*.txt" \) -and -not -path \*SCCS\* -print
|
||||||
)|(
|
)|(
|
||||||
while read v
|
while read v
|
||||||
do
|
do
|
||||||
print_debug "Replacing LF -> CRLF from '$v'"
|
unix_to_dos $v
|
||||||
|
|
||||||
# ^M -> type CTRL V + CTRL M
|
|
||||||
cat $v | sed 's/
|
|
||||||
//' | sed 's/$/
|
|
||||||
/' > $v.tmp
|
|
||||||
done
|
done
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -195,21 +204,19 @@ copy_dir_dirs() {
|
|||||||
|
|
||||||
for arg do
|
for arg do
|
||||||
|
|
||||||
for arg do
|
cd $SOURCE
|
||||||
|
(
|
||||||
basedir=$arg
|
find $arg -type d \
|
||||||
|
-and -not -path \*SCCS\* \
|
||||||
if [ ! -d $BASE/$arg ]; then
|
-and -not -path \*.deps\* \
|
||||||
mkdir $BASE/$arg
|
-and -not -path \*autom4te.cache -print
|
||||||
fi
|
)|(
|
||||||
|
while read v
|
||||||
copy_dir_files $arg
|
|
||||||
|
|
||||||
do
|
do
|
||||||
for i in *
|
copy_dir_files $v
|
||||||
do
|
|
||||||
if [ -d $SOURCE/$basedir/$i ] && [ "$i" != "SCCS" ]; then
|
|
||||||
done
|
done
|
||||||
|
)
|
||||||
|
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -284,6 +291,9 @@ done
|
|||||||
|
|
||||||
./extra/replace std:: "" -- $BASE/sql/sql_yacc.cpp
|
./extra/replace std:: "" -- $BASE/sql/sql_yacc.cpp
|
||||||
|
|
||||||
|
unix_to_dos $BASE/README
|
||||||
|
mv $BASE/README $BASE/README.txt
|
||||||
|
|
||||||
#
|
#
|
||||||
# Initialize the initial data directory
|
# Initialize the initial data directory
|
||||||
#
|
#
|
||||||
|
Reference in New Issue
Block a user