my tree command returns
tree
tmp `-- t `-- e |-- foo.ps `-- s |-- bar.ps `-- t `-- baz.ps
for GNU tar you can use the --xform argument. It takes a sed expression and applies it on each file name. So for removing all characters up to the last /, you may use:
--xform
sed
/
tar -c --xform s:^.*/:: your-files