On Sun, 19 Mar 2000, Jason Gunthorpe wrote: > > On Mon, 20 Mar 2000, Adam Heath wrote: > > > You'll note the addition of 3 fields(Format, Patches, and Tarballs), and the > > different files specified for the files field. The existance of a Format > > Having a .tarballs.tar.gz seems rather pointless, just have all the tars > seperate - as does including the md5s for patches in the .dsc, have a > manifest file in patch tar. Though the point of that does rather elude me.
I had a tarballs.tar.gz to lessen the number of files to download. Altho, upon reflection, I could see that would increase bandwidth usage. A separate manifest file sounds good. Ok, well, I went and did all that. :) === $ ./unpack xawtv_3.07-2.dsc Extracting xawtv in xawtv-3.07. Extracting xawtv_3.07-2.debian.tar.gz in xawtv-3.07. Applying patch 000_fbtv_fhs.diff in xawtv-3.07. Applying patch 001_i2c_header_fix.diff in xawtv-3.07. Applying patch 002_Makefile.in.sanity.diff in xawtv-3.07. Applying patch 003_autoconf_parallel_compile.diff in xawtv-3.07. === === Files: 93c152103ca081bd993bb216952a61be 293809 xawtv_3.07.orig.tar.gz 49d09b3edefb8279dc0ae1df3a42d15b 15908 xawtv_3.07-2.debian.tar.gz fbb0a2fdc26934037ad11553f8f19814 2624 xawtv_3.07-2.diffs.tar.gz === The script looks for all files matching the pattern *.diffs.tar.gz(yes, it allows multiple patch archives. This could be used to share between sources), then everything else that matches *.tar.gz is placed into a tarballs variable. The first listed tarball is assumed to be orig.tar.gz, and special care is taken to ensure that it unpacks into a properly named directory. All other tarballs and patches are extracted/applied by cd'ing into the target directory first. Each .diffs.tar.gz contains a file named 'dsc' which holds the Patches field from the first version. Comments? Suggestions? ps: Yes, this script does have a good amount of error/sanity checking. It doesn't, however, clean up after itself(I hope to rectify this). ----BEGIN GEEK CODE BLOCK---- Version: 3.12 GCS d- s: a-- c+++ UL++++ P+ L++++ !E W+ M o+ K- W--- !O M- !V PS-- PE++ Y+ PGP++ t* 5++ X+ tv b+ D++ G e h*! !r z? -----END GEEK CODE BLOCK----- ----BEGIN PGP INFO---- Adam Heath <[EMAIL PROTECTED]> Finger Print | KeyID 67 01 42 93 CA 37 FB 1E 63 C9 80 1D 08 CF 84 0A | DE656B05 PGP AD46 C888 F587 F8A3 A6DA 3261 8A2C 7DC2 8BD4 A489 | 8BD4A489 GPG -----END PGP INFO-----