Skip to content

Commit

Permalink
macosx distribution: use autoconf to propagate version number
Browse files Browse the repository at this point in the history
  • Loading branch information
schloegl committed Aug 30, 2023
1 parent f61d77c commit fb07c2c
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 7 deletions.
6 changes: 4 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AC_INIT([stimfit],[0.16.3])
AC_INIT([stimfit],[0.16.3rc1])
AC_CONFIG_SRCDIR(src/stimfit/gui/main.cpp)
AM_INIT_AUTOMAKE([1.11])
AM_SILENT_RULES([yes])
Expand Down Expand Up @@ -388,6 +388,8 @@ CXXFLAGS="${CXXFLAGS} -Wall"

AC_CONFIG_HEADERS([stfconf.h])

AC_CONFIG_FILES([Makefile src/Makefile src/libstfio/Makefile src/libstfnum/Makefile src/libbiosiglite/Makefile src/pystfio/Makefile src/stimfit/Makefile src/stimfit/py/Makefile dist/macosx/stimfit.plist])
AC_CONFIG_FILES([Makefile src/Makefile src/libstfio/Makefile src/libstfnum/Makefile src/libbiosiglite/Makefile src/pystfio/Makefile src/stimfit/Makefile src/stimfit/py/Makefile
dist/macosx/stimfit.plist dist/macosx/macports/insert_checksums.sh dist/macosx/scripts/mkimage.sh dist/macosx/package.pmdoc/index.xml
])

AC_OUTPUT
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/bash

STFVERSION="0.16.3"
STFVERSION="@PACKAGE_VERSION@"
MPDIR=`pwd`
GSED=`which gsed`
if [ "${GSED}" = "" ]
Expand Down
1 change: 0 additions & 1 deletion dist/macosx/package.pmdoc/index.xml

This file was deleted.

1 change: 1 addition & 0 deletions dist/macosx/package.pmdoc/index.xml.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<pkmkdoc spec="1.12"><properties><title>stimfit</title><build>/Users/cs/stimfit-@PACKAGE_VERSION@.pkg</build><organization>stimfit.org</organization><userSees ui="easy"/><min-target os="2"/><domain system="true"/></properties><distribution><versions min-spec="1.000000"/><scripts></scripts></distribution><description></description><contents><choice title="stimfit" id="choice20" starts_selected="true" starts_enabled="true" starts_hidden="false"><pkgref id="stimfit.org.stimfit.stimfit.pkg"/></choice></contents><resources bg-scale="none" bg-align="bottomright"><locale lang="en"><resource type="license">/Users/cs/stimfit/gpl-2.0.txt</resource></locale></resources><flags/><item type="file">01stimfit.xml</item><mod>properties.systemDomain</mod><mod>properties.title</mod><mod>properties.anywhereDomain</mod><mod>postinstallActions.actions</mod></pkmkdoc>
3 changes: 0 additions & 3 deletions dist/macosx/scripts/mkimage.sh

This file was deleted.

3 changes: 3 additions & 0 deletions dist/macosx/scripts/mkimage.sh.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#! /bin/bash

hdiutil create stimfit-@PACKAGE_VERSION@.dmg -srcfolder ./stimfit.app -ov -format UDBZ

0 comments on commit fb07c2c

Please sign in to comment.