Skip to content
Snippets Groups Projects
Commit c77f659d authored by brad kittenbrink's avatar brad kittenbrink
Browse files

Added a separate autobuild buildscript build-cmd.sh so parabuild can deal with...

Added a separate autobuild buildscript build-cmd.sh so parabuild can deal with the extra steps of packaging and uploading separately.
parent ea6c5b83
No related branches found
No related tags found
No related merge requests found
...@@ -8,17 +8,17 @@ ...@@ -8,17 +8,17 @@
<key>darwin</key> <key>darwin</key>
<map> <map>
<key>command</key> <key>command</key>
<string>sh ./build.sh</string> <string>sh ./build-cmd.sh</string>
</map> </map>
<key>linux</key> <key>linux</key>
<map> <map>
<key>command</key> <key>command</key>
<string>sh ./build.sh</string> <string>sh ./build-cmd.sh</string>
</map> </map>
<key>windows</key> <key>windows</key>
<map> <map>
<key>command</key> <key>command</key>
<string>sh ./build.sh</string> <string>sh ./build-cmd.sh</string>
</map> </map>
</map> </map>
<key>builddir</key> <key>builddir</key>
......
#!/bin/sh
# turn on verbose debugging output for parabuild logs.
set -x
# make errors fatal
set -e
ZLIB_VERSION="1.2.3"
ZLIB_SOURCE_DIR="zlib-$ZLIB_VERSION"
ZLIB_ARCHIVE="$ZLIB_SOURCE_DIR.tar.gz"
ZLIB_URL="http://downloads.sourceforge.net/project/libpng/zlib/$ZLIB_VERSION/$ZLIB_ARCHIVE"
ZLIB_MD5="debc62758716a169df9f62e6ab2bc634" # for zlib-1.2.3.tar.gz
if [ -z "$autobuild" ] ; then
fail
fi
# load autbuild provided shell functions and variables
set +x
eval "$("$autobuild" source_environment)"
set -x
fetch_archive "$ZLIB_URL" "$ZLIB_ARCHIVE" "$ZLIB_MD5"
extract "$ZLIB_ARCHIVE"
top="$(pwd)"
cd "$ZLIB_SOURCE_DIR"
case "$AUTOBUILD_PLATFORM" in
"windows")
build_sln "contrib/vstudio/vc8/zlibvc.sln" "Debug|Win32"
build_sln "contrib/vstudio/vc8/zlibvc.sln" "Release|Win32"
mkdir -p stage/lib/{debug,release}
cp "contrib/vstudio/vc8/x86/ZlibStatDebug/zlibstat.lib" \
"stage/lib/debug/zlibd.lib"
cp "contrib/vstudio/vc8/x86/ZlibStatRelease/zlibstat.lib" \
"stage/lib/release/zlib.lib"
mkdir -p "stage/include/zlib"
cp {zlib.h,zconf.h} "stage/include/zlib"
;;
*)
./configure --prefix="$(pwd)/stage"
make
make install
;;
esac
mkdir -p stage/LICENSES
tail -n 31 README > stage/LICENSES/zlib.txt
cd "$top"
pass
...@@ -54,37 +54,17 @@ set +x ...@@ -54,37 +54,17 @@ set +x
eval "$("$autobuild" source_environment)" eval "$("$autobuild" source_environment)"
set -x set -x
fetch_archive "$ZLIB_URL" "$ZLIB_ARCHIVE" "$ZLIB_MD5" "$autobuild" build
extract "$ZLIB_ARCHIVE"
top="$(pwd)"
cd "$ZLIB_SOURCE_DIR"
case "$AUTOBUILD_PLATFORM" in
"windows")
build_sln "contrib/vstudio/vc8/zlibvc.sln" "Debug|Win32"
build_sln "contrib/vstudio/vc8/zlibvc.sln" "Release|Win32"
mkdir -p stage/lib/{debug,release}
cp "contrib/vstudio/vc8/x86/ZlibStatDebug/zlibstat.lib" \
"stage/lib/debug/zlibd.lib"
cp "contrib/vstudio/vc8/x86/ZlibStatRelease/zlibstat.lib" \
"stage/lib/release/zlib.lib"
mkdir -p "stage/include/zlib"
cp {zlib.h,zconf.h} "stage/include/zlib"
;;
*)
./configure --prefix="$(pwd)/stage"
make
make install
;;
esac
mkdir -p stage/LICENSES
tail -n 31 README > stage/LICENSES/zlib.txt
cd "$top"
"$autobuild" package "$autobuild" package
ZLIB_INSTALLABLE_PACKAGE_FILENAME="zlib-$ZLIB_VERSION-$AUTOBUILD_PLATFORM-$(date +%Y%m%d)*.tar.bz2" ZLIB_INSTALLABLE_PACKAGE_FILENAME="$(ls -1 zlib-$ZLIB_VERSION-$AUTOBUILD_PLATFORM-$(date +%Y%m%d)*.tar.bz2)"
"$autobuild" upload "$ZLIB_INSTALLABLE_PACKAGE_FILENAME" "$autobuild" upload "$ZLIB_INSTALLABLE_PACKAGE_FILENAME"
ZLIB_INSTALLABLE_PACKAGE_MD5="$(calc_md5 "$ZLIB_INSTALLABLE_PACKAGE_FILENAME")"
echo "{'md5':'$ZLIB_INSTALLABLE_PACKAGE_MD5', 'url':'http://s3.amazonaws.com/viewer-source-downloads/install_pkgs/$ZLIB_INSTALLABLE_PACKAGE_FILENAME'}" > "output.json"
uplodad_item installer "output.json" text/plain
pass pass
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment