Commit 10d05022 authored by Samir Benmendil's avatar Samir Benmendil

Move functions to conf/home/bin/functions

parent 448aa34e
......@@ -77,7 +77,7 @@ mkdir -p "${BASEPATH}"
rm -rf "${BASEPATH}/${PM_CONF}"
# source format functions
source functions/messages
source ./conf/home/bin/functions/messages
# Check distro and needed packages
if [ ! -e "/usr/bin/git" ] ; then
......
......@@ -25,7 +25,7 @@ _available_pkglists=$(cat _buildscripts/${_current_repo}-${_arch}-pkgs.conf | gr
_needed_functions="config_handling messages dependency_handling"
for subroutine in ${_needed_functions} ; do
source _buildscripts/functions/${subroutine}
source ~/bin/functions/${subroutine}
done
current_repo=${_cur_repo}
......
......@@ -27,7 +27,7 @@ _needed_functions="config_handling messages dependency_handling"
# load functions
for subroutine in ${_needed_functions} ; do
source _buildscripts/functions/${subroutine}
source ~/bin/functions/${subroutine}
done
current_repo="${_cur_repo}"
......
......@@ -25,7 +25,7 @@ _dest_repo=$(echo $1)
# helper functions
_needed_functions="config_handling helpers messages buildsystem"
for subroutine in ${_needed_functions} ; do
source _buildscripts/functions/${subroutine}
source ~/bin/functions/${subroutine}
done
set_repos_and_sync_folder
......
......@@ -13,7 +13,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>
source _buildscripts/functions/messages
source ~/bin/functions/messages
msg "Cleaning build packages"
......
......@@ -25,7 +25,7 @@ _dest_repo=$(echo $1)
# helper functions
_needed_functions="config_handling helpers messages buildsystem"
for subroutine in ${_needed_functions} ; do
source _buildscripts/functions/${subroutine}
source ~/bin/functions/${subroutine}
done
set_repos_and_sync_folder
......
......@@ -22,7 +22,7 @@ _available_pkglists=`cat _buildscripts/${_current_repo}-${_arch}-pkgs.conf | gre
# helper functions
_needed_functions="config_handling messages"
for subroutine in ${_needed_functions} ; do
source _buildscripts/functions/${subroutine}
source ~/bin/functions/${subroutine}
done
cleanup_src() {
......
......@@ -26,7 +26,7 @@ _dest_repo=$(echo $2)
# helper functions
_needed_functions="config_handling helpers messages buildsystem"
for subroutine in ${_needed_functions} ; do
source _buildscripts/functions/${subroutine}
source ~/bin/functions/${subroutine}
done
set_repos_and_sync_folder
......
......@@ -26,7 +26,7 @@ _dest_repo=$(echo $2)
# helper functions
_needed_functions="config_handling helpers messages buildsystem"
for subroutine in ${_needed_functions} ; do
source _buildscripts/functions/${subroutine}
source ~/bin/functions/${subroutine}
done
set_repos_and_sync_folder
......
......@@ -28,7 +28,7 @@ _cur_repo=$(pwd | awk -F '/' '{print $NF}')
# helper functions
_needed_functions="config_handling helpers messages buildsystem"
for subroutine in ${_needed_functions} ; do
source _buildscripts/functions/${subroutine}
source ~/bin/functions/${subroutine}
done
set_repos_and_sync_folder
......
......@@ -23,7 +23,7 @@ _available_pkglists=`cat _buildscripts/${_current_repo}-${_arch}-pkgs.conf | gre
# helper functions
_needed_functions="config_handling helpers messages"
for subroutine in ${_needed_functions} ; do
source _buildscripts/functions/${subroutine}
source ~/bin/functions/${subroutine}
done
decrease_pkgrels()
......
......@@ -26,7 +26,7 @@ _available_pkglists=$(cat _buildscripts/${_current_repo}-${_arch}-pkgs.conf | gr
# helper functions
_needed_functions="config_handling helpers messages"
for subroutine in ${_needed_functions} ; do
source _buildscripts/functions/${subroutine}
source ~/bin/functions/${subroutine}
done
increase_pkgrels() {
......
......@@ -22,7 +22,7 @@ _available_pkglists=`cat _buildscripts/${_current_repo}-${_arch}-pkgs.conf | gre
# helper functions
_needed_functions="config_handling helpers messages"
for subroutine in ${_needed_functions} ; do
source _buildscripts/functions/${subroutine}
source ~/bin/functions/${subroutine}
done
decrease_pkgrels()
......
......@@ -11,7 +11,7 @@ _needed_functions="config_handling messages"
# load functions
for subroutine in ${_needed_functions}
do
source _buildscripts/functions/${subroutine}
source ~/bin/functions/${subroutine}
done
#
......
......@@ -23,8 +23,8 @@
_script_name="gen rebuild list"
_cur_repo=`pwd | awk -F '/' '{print $NF}'`
source _buildscripts/functions/config_handling
source _buildscripts/functions/messages
source ~/bin/functions/config_handling
source ~/bin/functions/messages
title "${_script_name}"
......
......@@ -25,7 +25,7 @@ _dest_repo=$(echo $1)
# helper functions
_needed_functions="config_handling helpers messages buildsystem"
for subroutine in ${_needed_functions} ; do
source _buildscripts/functions/${subroutine}
source ~/bin/functions/${subroutine}
done
set_repos_and_sync_folder
......
......@@ -27,7 +27,7 @@ _dest_repo=$(echo $2)
# helper functions
_needed_functions="config_handling helpers messages buildsystem"
for subroutine in ${_needed_functions} ; do
source _buildscripts/functions/${subroutine}
source ~/bin/functions/${subroutine}
done
set_repos_and_sync_folder
......
......@@ -17,8 +17,8 @@
_script_name="repoclean local"
_cur_repo=$(pwd | awk -F '/' '{print $NF}')
source _buildscripts/functions/config_handling
source _buildscripts/functions/messages
source ~/bin/functions/config_handling
source ~/bin/functions/messages
title "${_script_name}"
......
......@@ -19,8 +19,8 @@ _cur_repo=$(pwd | awk -F '/' '{print $NF}')
_sarch="x32"
[[ ${_arch} = *x*64* ]] && _sarch="x64"
source _buildscripts/functions/config_handling
source _buildscripts/functions/messages
source ~/bin/functions/config_handling
source ~/bin/functions/messages
# Determine the sync folder
if [[ ${_cur_repo} = *-testing ]] && [[ ${_cur_repo} != lib32-testing ]] ; then
......
......@@ -23,7 +23,7 @@ _cur_repo=`pwd | awk -F '/' '{print $NF}'`
# load functions
_needed_functions="config_handling helpers messages"
for subroutine in ${_needed_functions} ; do
source _buildscripts/functions/${subroutine}
source ~/bin/functions/${subroutine}
done
#
......
......@@ -23,7 +23,7 @@ _cur_repo=`pwd | awk -F '/' '{print $NF}'`
# load functions
_needed_functions="config_handling helpers messages"
for subroutine in ${_needed_functions} ; do
source _buildscripts/functions/${subroutine}
source ~/bin/functions/${subroutine}
done
#
......
......@@ -26,7 +26,7 @@ _dest_repo=$(echo $1)
# helper functions
_needed_functions="config_handling helpers messages buildsystem"
for subroutine in ${_needed_functions} ; do
source _buildscripts/functions/${subroutine}
source ~/bin/functions/${subroutine}
done
set_repos_and_sync_folder
......
......@@ -26,7 +26,7 @@ _dest_repo=$(echo $1)
# helper functions
_needed_functions="config_handling helpers messages buildsystem"
for subroutine in ${_needed_functions} ; do
source _buildscripts/functions/${subroutine}
source ~/bin/functions/${subroutine}
done
set_repos_and_sync_folder
......
......@@ -25,7 +25,7 @@ _dest_repo=$(echo $1)
# helper functions
_needed_functions="config_handling helpers messages buildsystem"
for subroutine in ${_needed_functions} ; do
source _buildscripts/functions/${subroutine}
source ~/bin/functions/${subroutine}
done
set_repos_and_sync_folder
......
......@@ -25,7 +25,7 @@ _dest_repo=$(echo $1)
# helper functions
_needed_functions="config_handling helpers messages buildsystem"
for subroutine in ${_needed_functions} ; do
source _buildscripts/functions/${subroutine}
source ~/bin/functions/${subroutine}
done
set_repos_and_sync_folder
......
......@@ -27,7 +27,7 @@ _cur_repo=$(pwd | awk -F '/' '{print $NF}')
# helper functions
_needed_functions="config_handling helpers messages buildsystem"
for subroutine in ${_needed_functions} ; do
source _buildscripts/functions/${subroutine}
source ~/bin/functions/${subroutine}
done
set_repos_and_sync_folder
......
......@@ -13,7 +13,7 @@ _carch="x64"
# helper functions
_needed_functions="config_handling helpers messages buildsystem chroot_handling"
for subroutine in ${_needed_functions} ; do
source _buildscripts/functions/${subroutine}
source ./conf/home/bin/functions/${subroutine}
done
assert_outside_chroot
......
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