Skip to content

Commit

Permalink
Fix checksum generation in extras/CMakeLists.txt.
Browse files Browse the repository at this point in the history
  • Loading branch information
poletti-marco committed Nov 1, 2014
1 parent 4b8744f commit 0e1f0cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extras/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ add_custom_target(fruit-${FRUIT_VERSION}.tar.gz ALL
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/..
COMMAND git archive -o ${CMAKE_CURRENT_BINARY_DIR}/built/fruit-${FRUIT_VERSION}.tar.gz --prefix=fruit-${FRUIT_VERSION}/ HEAD
COMMAND md5sum ${CMAKE_CURRENT_BINARY_DIR}/built/fruit-${FRUIT_VERSION}.tar.gz | awk '{print $$1}' >${CMAKE_CURRENT_BINARY_DIR}/tarball-md5
COMMAND sed "\"s/.*md5sums.*/md5sums=('\"`cat ${CMAKE_CURRENT_BINARY_DIR}/tarball-md5`\"')/\"" <${CMAKE_CURRENT_BINARY_DIR}/PKGBUILD-template >${CMAKE_CURRENT_BINARY_DIR}/built/PKGBUILD)
COMMAND sed "\"s/.*md5sums.*/md5sums=(`cat" "${CMAKE_CURRENT_BINARY_DIR}/tarball-md5`)/\"" <${CMAKE_CURRENT_BINARY_DIR}/PKGBUILD-template >${CMAKE_CURRENT_BINARY_DIR}/built/PKGBUILD)

0 comments on commit 0e1f0cf

Please sign in to comment.