Skip to content
Browse files

prepare dist

  • Loading branch information...
1 parent 1b17cdf commit 2b9c51152bdc679d9504e5bf7e10fe89afad0f0f @x42 committed Aug 15, 2012
Showing with 106 additions and 10 deletions.
  1. +4 −0 .gitignore
  2. +2 −2 ChangeLog
  3. +1 −1 Doxyfile.in
  4. +6 −4 Makefile.am
  5. 0 NEWS
  6. +8 −3 doc/Makefile.am
  7. +80 −0 release.sh
  8. +5 −0 tests/Makefile.am
View
4 .gitignore
@@ -17,6 +17,10 @@ config.*
tests/ltcdecode
tests/ltcencode
doc/html/
+doc/man/man3/mainpage.dox.3
+doc/man/man3/*libltc_src_.3
+
+doc/libltc.xcf
atconfig
depcomp
View
4 ChangeLog
@@ -1,2 +1,2 @@
-2012-Aug-15 Robin Gareus <robin@gareus.org>
-refactored libltcsmpte.sf.net into libltc
+2012-07-15 (v0.5.0) Robin Gareus <robin@gareus.org>
+* refactored libltcsmpte.sf.net into libltc
View
2 Doxyfile.in
@@ -602,7 +602,7 @@ CITE_BIB_FILES =
# The QUIET tag can be used to turn on/off the messages that are generated
# by doxygen. Possible values are YES and NO. If left blank NO is used.
-QUIET = NO
+QUIET = YES
# The WARNINGS tag can be used to turn on/off the warning messages that are
# generated by doxygen. Possible values are YES and NO. If left blank
View
10 Makefile.am
@@ -1,13 +1,15 @@
AUTOMAKE_OPTIONS = foreign
+
SUBDIRS = @subdirs@
-EXTRA_DIST=ltc.pc.in Doxyfile.in COPYING INSTALL README.md \
- tests/example_encode.c \
- tests/timecode.raw tests/timecode.txt \
- tests/expect_48k_2sec.txt tests/expect_96k_2sec.txt
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = ltc.pc
+EXTRA_DIST= \
+ ltc.pc.in Doxyfile.in \
+ README.md ChangeLog \
+ COPYING INSTALL AUTHORS
+
CLEANFILES = stamp-doxygen stamp-doc
dox: stamp-doxygen
View
0 NEWS
No changes.
View
11 doc/Makefile.am
@@ -1,10 +1,15 @@
clean-local:
rm -f html/*.*
rm -f man/man3/mainpage.dox.3
- rm -f man/man3/home_rgareus_data_coding_libltc_src_.3
+ rm -f man/man3/*libltc_src_.3
-# install the man pages
+# install the man pages
man_MANS=man/man3/ltc.h.3
#include them in dist.
-EXTRA_DIST=man/man3/ltc.h.3
+EXTRA_DIST= \
+ mainpage.dox \
+ man/man3/ltc.h.3 \
+ libltc.png \
+ smptefmt.png \
+ favicon.ico
View
80 release.sh
@@ -0,0 +1,80 @@
+#!/bin/sh
+
+EDITOR=${EDITOR:-editor}
+
+if test ! -d .git; then
+ echo "ERROR: This script runs only from a git repository."
+ exit 1
+fi
+
+if test "`git symbolic-ref HEAD`" != "refs/heads/master"; then
+ echo "ERROR: The git 'master' branch must be checked out."
+ exit 1
+fi
+
+echo "commit pending changes.."
+git commit -a
+
+# to bump the version number
+# - src/ltc.h (this is the MAIN VERSION used by configure)
+# and re-run autogen.sh to pick it up.
+# - Changelog
+# - debian/changelog (for the debian package)
+
+echo "Update version number -- edit 3 files: src/ltc.h ChangeLog debian/changelog"
+echo -n "launch editor ? [Y/n]"
+read -n1 a
+echo
+
+if test "$a" != "n" -a "$a" != "N"; then
+ ${EDITOR} src/ltc.h debian/changelog ChangeLog
+ sh autogen.sh
+fi
+
+VERSION=$(awk '/ VERSION /{print $3;}' src/config.h | sed 's/"//g')
+
+if [ -z "$VERSION" ]; then
+ echo "unknown VERSION number"
+ exit 1;
+fi
+
+echo "VERSION: $VERSION"
+
+echo -n "Is this correct? [Y/n]"
+read -n1 a
+echo
+if test "$a" == "n" -o "$a" == "N"; then
+ exit 1
+fi
+
+echo "re-creating man-pages and documentation with new version-number.."
+make dox
+
+echo "creating git-commit of updated doc & version number"
+git commit -m "finalize changelog v${VERSION}" src/ltc.h ChangeLog debian/changelog doc/man/man3/ltc.h.3
+
+cd doc/html
+git add *.*
+git commit -a -m "doxgen -- v${VERSION}"
+cd ../..
+
+git tag "v${VERSION}" || (echo -n "version tagging failed. - press Enter to continue, CTRL-C to stop."; read; )
+
+echo -n "git push? [Y/n]"
+read -n1 a
+echo
+
+if test "$a" != "n" -a "$a" != "N"; then
+ git push origin || exit 1
+ #git push --tags ## would push ALL existing tags,
+ git push origin "refs/tags/v${VERSION}:refs/tags/v${VERSION}" || exit 1
+ cd doc/html
+ git push origin gh-pages || exit 1
+ cd ../..
+fi
+
+make dist
+ls -l "libltc-${VERSION}.tar.gz"
+
+GITREPO="x42/libltc"
+x-www-browser https://github.com/${GITREPO}/downloads
View
5 tests/Makefile.am
@@ -2,6 +2,11 @@ check_PROGRAMS = ltcencode ltcdecode
CLEANFILES = output.raw
+EXTRA_DIST= \
+ example_encode.c \
+ timecode.raw timecode.txt \
+ expect_48k_2sec.txt expect_96k_2sec.txt
+
LIBLTCDIR =../src
INCLUDES = -I$(srcdir)/$(LIBLTCDIR)

0 comments on commit 2b9c511

Please sign in to comment.
Something went wrong with that request. Please try again.