Skip to content
Snippets Groups Projects
Commit 226bfc82 authored by Guillaume Roguez's avatar Guillaume Roguez
Browse files

scripts: fix deployment script

* few syntax errors fixes
* functions renaming
* untabbify

Change-Id: Id0a01ab894cbd22dc027b7571f9bce0012b0bca4
parent 9974a0d7
Branches
Tags
No related merge requests found
...@@ -31,7 +31,7 @@ set -e ...@@ -31,7 +31,7 @@ set -e
## Debian / Ubuntu packaging ## ## Debian / Ubuntu packaging ##
############################### ###############################
function process_deb() function package_deb()
{ {
################################################## ##################################################
## Create local repository for the given distro ## ## Create local repository for the given distro ##
...@@ -106,7 +106,7 @@ EOF ...@@ -106,7 +106,7 @@ EOF
## Fedora packaging ## ## Fedora packaging ##
###################### ######################
function process_rpm() function package_rpm()
{ {
################################################## ##################################################
## Create local repository for the given distro ## ## Create local repository for the given distro ##
...@@ -200,14 +200,14 @@ function deploy() ...@@ -200,14 +200,14 @@ function deploy()
## Detect suitable packaging based on distribution name ## ## Detect suitable packaging based on distribution name ##
########################################################## ##########################################################
function process() function package()
{ {
if [ ${DISTRIBUTION:0:6} == 'debian' || ${DISTRIBUTION:0:6} == 'ubuntu' ]; if [ ${DISTRIBUTION:0:6} == 'debian' || ${DISTRIBUTION:0:6} == 'ubuntu' ];
then then
process_deb(); package_deb
elif [ ${DISTRIBUTION:0:6} == 'fedora' ]; elif [ ${DISTRIBUTION:0:6} == 'fedora' ];
then then
process_rpm(); package_rpm
else else
echo "ERROR: Distribution '${DISTRIBUTION' is unsupported" echo "ERROR: Distribution '${DISTRIBUTION' is unsupported"
fi fi
...@@ -244,5 +244,5 @@ case $i in ...@@ -244,5 +244,5 @@ case $i in
esac esac
done done
process() package
deploy() deploy
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment