Re: [DVBCUT-user] How to create tarball from svn

2009-06-28 Thread Michael Riepe
Hi!

Francesco Fumanti wrote:
 Hello,
 
 
 Here are the commands that I use to manually install dvbcut on my Ubuntu 
 installation:
 
 checkout:
 svn co https://dvbcut.svn.sourceforge.net/svnroot/dvbcut/trunk dvbcut
 
 Compile and install:
 autoconf
 ./configure --with-qt3-include=/usr/include/qt3/ --prefix=/usr
 make
 sudo make install

Yep, that's exactly how it's done (+/- config options).

 Could anybody please tell me how I can create a tarball from the svn 
 directory produced by the checkout?

To build a source tarball, just configure as usual and then type make
dist. You can check if the tarball works correctly by running make
check-dist afterwards.

Building a binary tarball isn't supported by the build system, but it's
not much harder either. Install the program in a temporary directory,
and then tar it up:

autoconf
./configure options-as-you-need-them
make
mkdir /tmp/dvbcut-install
sudo make install DESTDIR=/tmp/dvbcut-install
tar cvfz dvbcut.tar.gz -C /tmp/dvbcut-install .

Note the dot at the end of the last command!

The trick is to specify a pseudo-root for the installation, using the
DESTDIR variable. Becoming root for installing isn't actually required,
but it makes sure that the installed files are owned by root (and are
tar'd up that way). Alternatively, you can omit sudo and add the options
--numeric-owner --owner=0 --group=0 to the tar command line, as I do it
in the `make dist' target (see makefile.in).

Of course, all this only works with GNU tar.

-- 
Michael Tired Riepe mich...@mr511.de
X-Tired: Each morning I get up I die a little

--
___
DVBCUT-user mailing list
DVBCUT-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dvbcut-user


Re: [DVBCUT-user] How to create tarball from svn

2009-06-28 Thread Francesco Fumanti
Hi,


Michael Riepe wrote:
 Here are the commands that I use to manually install dvbcut on my Ubuntu 
 installation:

 checkout:
 svn co https://dvbcut.svn.sourceforge.net/svnroot/dvbcut/trunk dvbcut

 Compile and install:
 autoconf
 ./configure --with-qt3-include=/usr/include/qt3/ --prefix=/usr
 make
 sudo make install
 
 Yep, that's exactly how it's done (+/- config options).
 
 Could anybody please tell me how I can create a tarball from the svn 
 directory produced by the checkout?
 
 To build a source tarball, just configure as usual and then type make
 dist. You can check if the tarball works correctly by running make
 check-dist afterwards.


Thanks for the reply, but unfortunately it does not work on my Ubuntu 
9.04 installation. I think that this is the relevant output from the 
terminal:


Last change made on 2009-06-27 at 17:08:09Z in file 'dvbcut.h' by 
'too-tired'
Prepared header file './src/version.h' for version/revision: 
0.6.0-release/165
cd dvbcut-0.6.0  \
find . -type f ! -name MANIFEST -exec wc -c {} \; | \
sort +1 MANIFEST
sort: open failed: +1: No such file or directory
find: `wc' terminated by signal 13
find: `wc' terminated by signal 13
find: `wc' terminated by signal 13
find: `wc' terminated by signal 13
find: `wc' terminated by signal 13
snip
find: `wc' terminated by signal 13
find: `wc' terminated by signal 13
find: `wc' terminated by signal 13
make: *** [stamp-dist] Error 2


It seems to me that a file named MANIFEST is missing. Do I have to 
create it and what should be its content? Or should it be automatically 
generated?


Thanks in advance for any help,

Francesco


--
___
DVBCUT-user mailing list
DVBCUT-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dvbcut-user


Re: [DVBCUT-user] How to create tarball from svn

2009-06-28 Thread Michael Riepe
Hi!

Francesco Fumanti wrote:

 Thanks for the reply, but unfortunately it does not work on my Ubuntu 
 9.04 installation. I think that this is the relevant output from the 
 terminal:
 
 
 Last change made on 2009-06-27 at 17:08:09Z in file 'dvbcut.h' by 
 'too-tired'
 Prepared header file './src/version.h' for version/revision: 
 0.6.0-release/165
 cd dvbcut-0.6.0  \
   find . -type f ! -name MANIFEST -exec wc -c {} \; | \
   sort +1 MANIFEST
 sort: open failed: +1: No such file or directory

Ouch... shitty POSIX strikes again.
Change sort +1 to sort -k 2 please.
Or run svn update.

 find: `wc' terminated by signal 13
 find: `wc' terminated by signal 13
 find: `wc' terminated by signal 13
 find: `wc' terminated by signal 13
 find: `wc' terminated by signal 13

This is a secondary problem, caused by the premature death of sort.

Welcome to r166,
-- 
Michael Tired Riepe mich...@mr511.de
X-Tired: Each morning I get up I die a little

--
___
DVBCUT-user mailing list
DVBCUT-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dvbcut-user