The problem occurs because symlinks must be created with the symlink function, you can't just set the symlink attribute type using setAttributes.
I know, there's a goto in here.
I tried to do it without goto, and it looks terrible. The only other option is to repeat the normal file output inside the version statement, or maybe have a nested function, neither of which are as attractive to me.
If the goto is a dealbreaker, let me know how to proceed.
The problem occurs because symlinks must be created with the
symlink
function, you can't just set the symlink attribute type usingsetAttributes
.I know, there's a goto in here.
I tried to do it without goto, and it looks terrible. The only other option is to repeat the normal file output inside the version statement, or maybe have a nested function, neither of which are as attractive to me.
If the goto is a dealbreaker, let me know how to proceed.