Skip to content

Commit

Permalink
build fixes; add bindist target
Browse files Browse the repository at this point in the history
git-svn-id: https://dvbcut.svn.sourceforge.net/svnroot/dvbcut/trunk@166 36490176-9c1c-0410-b649-dbf2af5787bf
  • Loading branch information
too-tired committed Jun 28, 2009
1 parent b6e7d05 commit 7b3decd
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
7 changes: 7 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
2009-06-28 Michael Riepe <[email protected]>

* makefile.in:
Fix stamp-dist dependencies.
Fix non-POSIX sort command.
Add bindist target.

2009-06-27 Michael Riepe <[email protected]>

* src/dvbcut.cpp:
Expand Down
14 changes: 11 additions & 3 deletions makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ src/version.h: $(DISTFILES)
$(SHELL) ./setversion.sh $(DISTFILES)

distdir = dvbcut-$(VERSION)
dist: ./stamp-dist
./stamp-dist: distfiles $(DISTFILES)
dist: distfiles ./stamp-dist
./stamp-dist: $(DISTFILES)
rm -rf $(distdir)
mkdir $(distdir)
files="$(DISTFILES)"; for file in $$files; do \
Expand All @@ -78,7 +78,7 @@ dist: ./stamp-dist
cd $(distdir) && $(SHELL) ./setversion.sh $(DISTFILES)
cd $(distdir) && \
find . -type f ! -name MANIFEST -exec wc -c {} \; | \
sort +1 >MANIFEST
sort -k 2 >MANIFEST
-@rm -f $(distdir).tar.gz.bak dvbcut.tar.gz
-@mv -f $(distdir).tar.gz $(distdir).tar.gz.bak
tar cvohfz $(distdir).tar.gz --numeric-owner --owner=0 --group=0 $(distdir)
Expand All @@ -92,4 +92,12 @@ check-dist:
$(MAKE) -C $(distdir)
$(MAKE) -C $(distdir) check
$(MAKE) -C $(distdir) dist
diff $(distdir)/MANIFEST $(distdir)/$(distdir)/MANIFEST

bindist: all
dir=$(distdir)-`arch`; \
rm -rf $$dir; \
make install DESTDIR=`pwd`/$$dir && \
cd $$dir && \
tar cvofz ../$$dir.tar.gz --numeric-owner --owner=0 --group=0 *

0 comments on commit 7b3decd

Please sign in to comment.