mirror of https://github.com/openresty/openresty
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
489 B
Bash
19 lines
489 B
Bash
#!/bin/bash
|
|
|
|
name=`pwd|perl -e '$d=<>;$d=~s{.*?/}{}g;$d=~s/$//g;print $d'`
|
|
name="$name-win32"
|
|
echo $name
|
|
if [ -d $name ]; then
|
|
rm -rf $name
|
|
fi
|
|
mkdir $name || exit 1
|
|
cp -r resty nginx.exe luajit.exe lua51.dll lua include lualib html conf logs $name/ || exit 1
|
|
cd $name || exit 1
|
|
PATH=/c/Strawberry/perl/bin:$PATH cmd /c 'pl2bat.bat resty' || exit 1
|
|
cp ../README-win32.txt README.txt
|
|
unix2dos conf/* html/*.html || exit 1
|
|
cd .. || exit 1
|
|
zip -r $name.zip $name || exit 1
|
|
echo $name.zip
|
|
|