scripts: add local version number file#597
Conversation
we now using git tag for version number control, but if we release the code without .git/ folder, the git tag version number is not present, so will cause compile error. add the .tarball-version file as the local version number file, it still can be generated by the autogen.sh from git tag. So everytime anyone make a git tag should still modify the .tarball-version file. Signed-off-by: Zhu Yingjiang <yingjiang.zhu@linux.intel.com>
|
@zhuyingjiang are you sure alsalib keeps .tarball-version under version control ? I cant see it today and I've just done an update. Tracking this file is also causing issues for normal git workflow since it is being modified by our scripts when we build. I'm going to revert until this is resolved. |
|
alsa-lib have local version number in configure,ac as below: |
|
@zhuyingjiang .tarball_version can be used, bu the point is that it cant be under version control (since it's frequently modified e.g. by building). See @jajanusz comments in revert discussion. |
|
@lgirdwood OK, I see in the latest code "make dist" can generate the .tarball-version in the tarball, so upstream a .tarball-version it not needed, I will change the PR in the .gitignore and remove .tarball-version. |
we now using git tag for version number control, but if
we release the code without .git/ folder, the git tag version
number is not present, so will cause compile error.
add the .tarball-version file as the local version number file,
it still can be generated by the autogen.sh from git tag. So
everytime anyone make a git tag should still modify the
.tarball-version file.
Signed-off-by: Zhu Yingjiang yingjiang.zhu@linux.intel.com