Skip to content

Commit

Permalink
Facilitate debug releases
Browse files Browse the repository at this point in the history
  • Loading branch information
oitofelix committed Sep 26, 2020
1 parent d408686 commit 784bd2d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion allegro5.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ channels=all
# Log-level. Can be one of debug, info, warn, error, none or empty.
# In debug builds if it is empty or unset, then the level is set to debug.
# In release builds if it is empty or unset, then the level is set to none.
level=none
# level=none

# Set to 0 to disable line numbers in log files.
lines=1
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ AM_CONDITIONAL([DEBUG], [test x$debug = xtrue])

AS_IF([[test x$debug != xtrue]],
[AC_DEFINE([NDEBUG], [1], [Define to 1 to disable assert macro.])],
dnl [debug_suffix=-debug]
[debug_suffix=-debug]
)

# Optimizations option
Expand Down
12 changes: 10 additions & 2 deletions gnu-linux-release
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ if [ -f Makefile ]; then make clean; fi
mv build-aux/texinfo.tex{,.bkp}
autoreconf --install --force
mv build-aux/texinfo.tex{.bkp,}
./configure
if [ "$1" == "debug" ]; then
./configure --enable-debug
else
./configure
fi
make -j4

# build documentation
Expand All @@ -24,7 +28,11 @@ else exit 1
fi

VERSION=$(grep -Po '#define VERSION "\K.*?(?=")' config.h)-gnu-linux$bits
RELEASE_DIR=release/mininim-$VERSION
if [ "$1" == "debug" ]; then
RELEASE_DIR=release/mininim-$VERSION-debug
else
RELEASE_DIR=release/mininim-$VERSION
fi

# create directory structure
rm -rf $RELEASE_DIR
Expand Down

0 comments on commit 784bd2d

Please sign in to comment.