On 02/14/2012 03:07 PM, François ANDRIOT wrote:
Hello, I'd like to know if there is an existing script or method to build "official" source tarballs from git. I need to get tarballs that "look like" the ones that are delivered for official releases, e.g. that I can build exactly in the same way that I build official releases tarballs.
Thanks, Francois
NOT Official, but this script will get you started. Here is the help for it:
Usage: mkgittgz.sh path-to-tde [default ~/tde] dir-to-write-tgz [~/tdetgz] -w [actually write!]
mkgittgz.sh will create tarballs from a local copy of the tde git repository layout. The script requires the location of the local copy as the first argument if the tde copy is not present in ~/tde and the directory to write tarballs to [default ~/tdetgz]. The script will output all the tar commands as a test for confirmation. Use the -w option as the third argument to actually create the files.
Filename format (examples):
tdepim-admin.tar.gz tdepim-akregator.tar.gz tdepim-certmanager.tar.gz tdepim-cmake.tar.gz
NOTE: IT JUST OUTPUTS THE tar COMMANDS UNLESS YOU SUPPLY THE '-w' OPTION.
You can run it safely to confirm it will create the tarballs where and how you want. Without the -w option you will get something similar to the following:
15:32 archangel:/dat_f/tde> sh ../david/scr/mkgittgz.sh /dat_f/tde parent: parent: applications tar -C /dat_f/tde/main/applications -czf /home/david/tdetgz/applications-abakus.tar.gz abakus tar -C /dat_f/tde/main/applications -czf /home/david/tdetgz/applications-adept.tar.gz adept tar -C /dat_f/tde/main/applications -czf /home/david/tdetgz/applications-amarok.tar.gz amarok tar -C /dat_f/tde/main/applications -czf /home/david/tdetgz/applications-basket.tar.gz basket tar -C /dat_f/tde/main/applications -czf /home/david/tdetgz/applications-bibletime.tar.gz bibletime
Hack it to suit your needs...