mkdir exportdir's parent, if necessary

Tux Paint's export features will fail if the parent
of the export directory didn't exist.  e.g., using the
default (either via XDG or hard-coded fallback) of
"~/Pictures/TuxPaint/", Tux Paint could not export if
"~/Pictures/" didn't exist yet.  It will now try to
mkdir it as well.  h/t Tim Dickson

Updated OPTIONS documents to explain this.

Also, documenting --exportdir in manpage (was missing!)
This commit is contained in:
Bill Kendrick 2021-01-13 22:48:29 -08:00
parent c2a4b9862a
commit c97932606f
9 changed files with 74 additions and 20 deletions

View file

@ -1,5 +1,5 @@
.\" tuxpaint.1 - 2020.12.27
.TH TUXPAINT 1 "27 December 2020" "0.9.26" "Tux Paint"
.\" tuxpaint.1 - 2021.01.13
.TH TUXPAINT 1 "13 January 2021" "0.9.26" "Tux Paint"
.SH NAME
tuxpaint -- "Tux Paint", a drawing program for young children.
@ -131,6 +131,8 @@ tuxpaint -- "Tux Paint", a drawing program for young children.
.br
[\-\-savedir \fIDIR\fP]
.br
[\-\-exportdir \fIDIR\fP]
.br
[\-\-datadir \fIDIR\fP]
.br
[\-\-saveover]
@ -484,7 +486,11 @@ Use the \fIalllocalefonts\fP option to load all such fonts, for use in the
.TP 8
.B \-\-savedir \fIDIR\fP
Specify where \fITux Paint\fP should save files.
Specify where \fITux Paint\fP should save and load its drawings.
.TP 8
.B \-\-exportdir \fIDIR\fP
Specify where \fITux Paint\fP should export drawings and animations.
.TP 8
.B \-\-datadir \fIDIR\fP