Some of the fg/data committers don't mind if they get archives of
complete aircraft even when only a few files changes. Others
prefer to get an archive sent that only contains new files
and a diff with all changes. The latter makes reviewing easier
and consumes less bandwidth. To make the process easier I wrote
a small script:
http://members.aon.at/mfranz/flightgear/fg-submit [1.9 kB]
It's used like this:
$ cd $FG_ROOT/Aircraft/mosquito
$ fg-submit
which generates an archive mosquito.tar.bz2 containing the new
files and a patch mosquito.diff. Send this to someone with
fgfs/data write access.
The script is for Unix/Linux only. If diffstat is installed,
then one gets some additional informative output. It prints a
color-coded list of which files it includes (yellow, with '+' in
front) and which it rejects (red, with '-'), such as *.bak, *.orig,
*~, *.tga, CVS/* files, etc.) Of course, you can remove the rules
if you need to submit such files.
It was tested in several aircraft directories and seems to work
well. It can be called in other dirs, too, but note that the
archive name is taken from the working directory. If you call it
in bo105/Models/, then the archive name will be Models.tar.bz2.
If you run into problems or have suggestions for improvements,
please tell me.
Here's a real-world example of the script executed in the bo105 dir:
$ fg-submit
checking for changed and new files ...
making diff ...
Instruments/tach/tach.xml |4
Models/Variants/Blue_MedEvac.xml | 28
Models/Variants/Mil_Anti-Tank.xml | 28
Models/Variants/Mil_M134.xml | 28
Models/Variants/Mil_MedEvac.xml| 28
Models/Variants/Orange.xml | 28
Models/Variants/Yellow_MedEvac.xml | 27
Models/bo105.ac|31952
-
Models/bo105.xml | 131
bo105-1.rgb|binary
bo105-set.xml | 60
empty.rgb |binary
livery.rgb |binary
tach.rgb |binary
14 files changed, 24624 insertions(+), 7690 deletions(-)
adding to archive ...
+ bo105.diff
+ Instruments/panel.xml
- Instruments/clock/clock.png (graphics file)
- Instruments/gsdi/gsdi.blend (blender file)
- Instruments/gsdi/gsdi.blend1 (blender file)
- Instruments/gsdi/gsdi.png (graphics file)
- Instruments/torque/torque.png (graphics file)
+ Models/bo105.osg
+ Models/bo105.xml.osg
creating archive bo105.tar.bz2
m.
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel