Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
reedacartwright committed May 2, 2013
2 parents fbebc23 + ecab3cf commit b848975
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
2 changes: 2 additions & 0 deletions releng/build-rel-unix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

CMAKE=cmake

umask 077

# Process command line arguments
build_toolchain=
while getopts t: name; do
Expand Down
17 changes: 14 additions & 3 deletions releng/releng.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,21 @@ if(NOT RELENG_TAG)
set(RELENG_TAG "HEAD")
endif()

# Identify Temporary Directory
if(WIN32 AND NOT UNIX)
set(TMPDIR $ENV{TEMP})
if(NOT TMPDIR)
set(TMPDIR "c:/Temp")
endif()
else()
set(TMPDIR $ENV{TMPDIR})
if(NOT TMPDIR)
set(TMPDIR "/tmp")
endif()
endif()

string(RANDOM TMP)
set(RELENG_DIR "${CMAKE_CURRENT_BINARY_DIR}/SPAGeDi-temp/${TMP}/")
set(RELENG_DIR "${TMPDIR}/spagedi-releng-${TMP}/")

message(STATUS "Using ${RELENG_DIR} to build packages ...")
file(MAKE_DIRECTORY "${RELENG_DIR}")
Expand Down Expand Up @@ -67,8 +80,6 @@ else()
set(MAKE_BIN make)
endif()

message(status "${CMAKE_DEFS}")

if(RELENG_M32)
set(CMAKE_DEFS ${CMAKE_DEFS} -DCMAKE_C_FLAGS=-m32)
endif()
Expand Down

0 comments on commit b848975

Please sign in to comment.