Skip to content

Commit

Permalink
* Modifying get_version.pl to work without MADARA_ROOT being set
Browse files Browse the repository at this point in the history
  • Loading branch information
jredmondson committed Jun 14, 2018
1 parent a9d1820 commit 02617a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/get_version.pl
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
# generation process.
###################################################

open VERSION_FILE, "<", $ENV{'MADARA_ROOT'} . "/VERSION.txt" or
open VERSION_FILE, "<", "../VERSION.txt" or
die "Unable to open ../VERSION.txt for reading.";
$version = <VERSION_FILE>;
close VERSION_FILE;

open OUTPUT_FILE, ">", $ENV{'MADARA_ROOT'} . "/docs/VERSION.txt" or
open OUTPUT_FILE, ">", "VERSION.txt" or
die "Unable to open VERSION.txt for writing.";
print OUTPUT_FILE "PROJECT_NUMBER = " . $version . "\n";
close OUTPUT_FILE;
Expand Down

0 comments on commit 02617a9

Please sign in to comment.