diff options
author | Daniil Baturin <daniil@baturin.org> | 2016-03-03 18:28:31 -0500 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2016-03-03 18:28:31 -0500 |
commit | 6a7696a1122560073c3121fdecb5e3bd0c6549cf (patch) | |
tree | 5c95d699069547f0b3e4ecd43a498be3e9cb497d /scripts/make-version-file | |
parent | 4499a0b196857b03bcf83caf2c902ab3f86f69bc (diff) | |
download | vyos-build-6a7696a1122560073c3121fdecb5e3bd0c6549cf.tar.gz vyos-build-6a7696a1122560073c3121fdecb5e3bd0c6549cf.zip |
After build, create a properly named symlink to the ISO (ref T8).
This is important for nightly builds, and handy for release builds.
Diffstat (limited to 'scripts/make-version-file')
-rwxr-xr-x | scripts/make-version-file | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/make-version-file b/scripts/make-version-file index fcc399f8..6c597090 100755 --- a/scripts/make-version-file +++ b/scripts/make-version-file @@ -64,3 +64,9 @@ with open(os.path.join(defaults.CHROOT_INCLUDES_DIR, 'opt/vyatta/etc/version.jso # for upgrade with open(os.path.join(defaults.CHROOT_INCLUDES_DIR, 'opt/vyatta/etc/version'), 'w') as f: print("Version: {0}".format(version), file=f) + +# Leaky abstraction: we want ISO file name include version number, +# but we probably don't want to have a separate build step just for this, +# neither we want to use lengthy paths in makefiles +with open(os.path.join(defaults.BUILD_DIR, 'version'), 'w') as f: + print(version, file=f) |