Skip to content

Commit

Permalink
Merge pull request #2 from ahresse/signature_script_updates
Browse files Browse the repository at this point in the history
Signature script updates
  • Loading branch information
gehwolf authored Jul 12, 2024
2 parents bc8d788 + 8aaaee9 commit ec6f494
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
7 changes: 4 additions & 3 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ endif (SAMCONF_DEMOS)
add_subdirectory(samconf)

if (INSTALL_SAMCONF_TOOLS)
install(FILES ${PROJECT_SOURCE_DIR}/src/signature.sh
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_EXECUTE WORLD_EXECUTE
DESTINATION ${CMAKE_INSTALL_BINDIR})
install(PROGRAMS ${PROJECT_SOURCE_DIR}/src/signature.sh
PERMISSIONS OWNER_READ OWNER_WRITE
DESTINATION ${CMAKE_INSTALL_BINDIR}
RENAME samconf-sign)
endif (INSTALL_SAMCONF_TOOLS)
8 changes: 5 additions & 3 deletions src/signature.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,16 @@
# Create an signature file for a given file path argument
set -e

SCRIPT_NAME=$(basename "$0")

help () {
echo "signature.sh – manage samconf signatures"
echo "${SCRIPT_NAME} – manage samconf signatures"
echo
echo "sign a given file with private key:"
echo " $>signature.sh <valid_path> <private key path>"
echo " $>${SCRIPT_NAME} <valid_path> <private key path>"
echo
echo "create a key pair to use with samconf:"
echo " $>signature.sh create_keys <output directory> <keyname>"
echo " $>${SCRIPT_NAME} create_keys <output directory> <keyname>"
}

signfile () {
Expand Down

0 comments on commit ec6f494

Please sign in to comment.