Commit 18160be0 authored by Joseph Pallamidessi's avatar Joseph Pallamidessi

Fix a few issue with the package generator

parent 31cd51fa
......@@ -75,8 +75,8 @@ SET(CPACK_PACKAGE_VERSION_PATCH "${PATCH_VERSION}")
SET(CPACK_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}_${MAJOR_VERSION}.${MINOR_VERSION}.${CPACK_PACKAGE_VERSION_PATCH}")
SET(CPACK_SOURCE_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}_${MAJOR_VERSION}.${MINOR_VERSION}.${CPACK_PACKAGE_VERSION_PATCH}")
SET(CPACK_DEBIAN_PACKAGE_DEPENDS "libc6 (>= 2.1.3), libgcc1 (>= 1:4.1.1), libstdc++6 (>= 4.2.1), build-essential")
SET(CPACK_DEBIAN_PACKAGE_DEPENDS "libc6 (>= 2.1.3), libgcc1 (>= 1:4.1.1), libstdc++6 (>= 4.2.1), build-essential, openjdk-8-jre")
set(CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA "postinst;prerm;")
SET(CPACK_DEBIAN_PACKAGE_PRIORITY "optional")
SET(CPACK_DEBIAN_PACKAGE_SECTION "devel")
SET(CPACK_DEBIAN_ARCHITECTURE ${CMAKE_SYSTEM_PROCESSOR})
......
#!/bin/sh
# Select the correct shell configuration file
USER_HOME=$HOME
PROFILE="$USER_HOME/.bashrc" # default
if [ "$(uname)" = "Linux" ]; then
# Linux case
# Check which sheel the user is using
# Trim the $SHELL variable to only have the shell name
SHELL_NAME=`echo $SHELL | awk -F/ '{print $NF}'`
case "$SHELL_NAME" in
"sh" )
PROFILE="$USER_HOME/.profile" ;;
"bash" )
PROFILE="$USER_HOME/.bashrc" ;;
"zsh" )
PROFILE="$USER_HOME/.zshrc" ;;
"csh" )
PROFILE="$USER_HOME/.cshrc" ;;
"tcsh" )
PROFILE="$USER_HOME/.tcshrc" ;;
"ksh" )
PROFILE="$USER_HOME/.kshrc" ;;
esac
else
# OSX case
if [ -f "$USER_HOME/.profile" ]; then
PROFILE="$USER_HOME/.profile"
else
PROFILE="$USER_HOME/.bash_profile"
fi
fi
# Export path
echo "Exporting and setting environment variables"
echo "Please launch an other shell session or source'd your shell profile file"
export EZ_PATH="/usr/local/easea/"
export PATH="$PATH:/usr/local/easea/bin"
echo >> $PROFILE
echo "# EASEA paths for compiler and library">> $PROFILE
echo "export EZ_PATH=$EZ_PATH">>$PROFILE
echo "export PATH=\$PATH:/usr/local/easea/bin" >>$PROFILE
#!/bin/sh
# prerm script
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment