Set revision and url in nightly builds

This is quick & dirty fix to a problem with revision number and date when
building from the tarball. The tarballs don't have all the git info
required to recognise build type and set revision/date properly, so it
will be done "manually" using sed. That change doesn't affect anything
except fedora rpmbuild or COPR builds.

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
This commit is contained in:
Przemo Firszt
2018-10-13 12:50:58 +01:00
committed by wmayer
parent d8eb9dd470
commit 9b063cd591

View File

@@ -154,6 +154,9 @@ rm -rf build && mkdir build && cd build
-DMEDFILE_INCLUDE_DIRS=%{_includedir}/med/ \
../
sed -i 's,FCRevision \"Unknown\",FCRevision \"%{release} (Git)\",' src/Build/Version.h
sed -i 's,FCRepositoryURL \"Unknown\",FCRepositoryURL \"git://github.com/FreeCAD/FreeCAD.git master\",' src/Build/Version.h
make %{?_smp_mflags}
%install