I have a project with the usual stuff (source code, yadda, yadda) and I want to have a command to Scons (but it could be whatever build system to be honest) that will do the following:
- Build the system -- this is easy.
- Create a tar ball of the system -- this is easy.
- When the content of the tar ball are extracted, they extract in a
fubar-VERSION/directory -- this is the tricky part.
I can do the latter manually by creating a symlink, then
taring from one directory above the project one but that feel inelegant. Any idea?
To clarify, I want to be able to do this:
; pwd ~/project ; scons release [...] ; cp project-X.Y.Z.tbz /tmp ; cd /tmp ; tar jxvf project-X.Y.Z.tbz ./project-X.Y.Z/[...]
Thus the archives extracts in a directory named after the project with the right version number.