Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

about-dialog: take release year and release date from NEWS #62

Merged
merged 1 commit into from
Dec 30, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,15 @@ AC_DEFINE_UNQUOTED(GST_MAJORMINOR, "$GST_MAJORMINOR", [gstreamer series])
AC_SUBST(GST_MAJORMINOR)

dnl release year and date
BT_RELEASE_YEAR=`date +%Y`
BT_RELEASE_DATE=`date +%Y-%m-%d`
DATE_STAMP=`head -n1 NEWS | sed 's/^[[^(]]*(\(.*\)).*$/\1/'`
if test "$DATE_STAMP" == "XX.XXX.XXXX"; then
BT_RELEASE_YEAR=`date +%Y`
BT_RELEASE_DATE=`date +%Y-%m-%d`
else
IFS="." read -r d m y <<< "$DATE_STAMP"
BT_RELEASE_YEAR="$y"
BT_RELEASE_DATE=`date -d "%d %m %y" +%Y-%m-%d`
fi

AC_SUBST(BT_MAJOR_VERSION)
AC_SUBST(BT_MINOR_VERSION)
Expand All @@ -62,6 +69,7 @@ AC_SUBST(BT_RELEASE_DATE)

AC_DEFINE_UNQUOTED(BT_VERSION, "$BT_VERSION", [library version as string])
AC_DEFINE_UNQUOTED(PACKAGE_VERSION_NUMBER, 900, [version as a number])
AC_DEFINE_UNQUOTED(BT_RELEASE_YEAR, $BT_RELEASE_YEAR, [release year])

dnl Checks for programs.
AC_PROG_CC
Expand Down
2 changes: 1 addition & 1 deletion src/ui/edit/about-dialog.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ bt_about_dialog_init_ui (const BtAboutDialog * self)
g_alloca (strlen (_("Copyright \xc2\xa9 2003-%d Buzztrax developer team"))
+ 3);
sprintf (copyright, _("Copyright \xc2\xa9 2003-%d Buzztrax developer team"),
2014);
BT_RELEASE_YEAR);

/* we can get logo via icon name, so this here is just for educational purpose
GdkPixbuf *logo;
Expand Down