diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-10-01 15:48:21 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-10-01 15:48:21 +0900 |
commit | 3a1f83fc6770da2b8adbf41f65ec5fa380ddf492 (patch) | |
tree | 1805de016d6ed4b95144750bec4055efaa76acb2 /debian/_buildscripts/local/build_module.sh | |
parent | 65fe1b6b6a7e8a0d450d4dec9ca4394319a20668 (diff) | |
download | tde-packaging-3a1f83fc6770da2b8adbf41f65ec5fa380ddf492.tar.gz tde-packaging-3a1f83fc6770da2b8adbf41f65ec5fa380ddf492.zip |
DEB build scripts: fixed support for metapackages and adjusted to new consolidated structure.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'debian/_buildscripts/local/build_module.sh')
-rwxr-xr-x | debian/_buildscripts/local/build_module.sh | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/debian/_buildscripts/local/build_module.sh b/debian/_buildscripts/local/build_module.sh index 94a5acee1..6799e2fa7 100755 --- a/debian/_buildscripts/local/build_module.sh +++ b/debian/_buildscripts/local/build_module.sh @@ -71,7 +71,7 @@ function search_module() # Search in GIT repository LOC_MATCH=`sed -n "s|^\[submodule \"main/\([^\"]*\)\"\]$|\1|p" <"$REPO_TDE/.gitmodules" | grep "$LOC_MOD_NAME$"` if [ "$LOC_MATCH" != "" -a "`echo $LOC_MATCH | wc -l`" = "1" ]; then - # Unique module found in GIT + # Unique module MODULE_FOUND="y" MOD_NAME=$LOC_MATCH MOD_GIT_PATH="$REPO_TDE_MAIN/$MOD_NAME" @@ -80,14 +80,26 @@ function search_module() else # Search in extra dependency folder LOC_BASENAME=`echo "$LOC_MOD_NAME" | sed -r "s|^${CFG_EXTRA_DEPS_DIR}/(debian/)?||"` - LOC_MATCH=`ls "$REPO_EXTRA_DEPENDENCIES/debian" | grep "^$LOC_BASENAME"` + LOC_MATCH=`ls "$REPO_EXTRA_DEPENDENCIES/debian" | grep "^$LOC_BASENAME\$"` if [ "$LOC_MATCH" != "" -a "`echo $LOC_MATCH | wc -l`" = "1" ]; then - # Unique module found in extra dependency folder + # Unique module found MODULE_FOUND="y" bool_EXTRADEP_MOD="y" MOD_NAME="$CFG_EXTRA_DEPS_DIR/$LOC_MATCH" MOD_GIT_PATH="$REPO_EXTRA_DEPENDENCIES/debian/$LOC_BASENAME" MOD_BUILD_PATH="$TDE_BUILD_DIR/$CFG_EXTRA_DEPS_DIR/$LOC_BASENAME" + else + # Search in metapackages folder + LOC_BASENAME=`echo "$LOC_MOD_NAME" | sed -r "s|^(metapackages/)?||"` + LOC_MATCH=`ls "$REPO_TDE_MAIN/metapackages" | grep "^$LOC_BASENAME\$"` + if [ "$LOC_MATCH" != "" -a "`echo $LOC_MATCH | wc -l`" = "1" ]; then + # Unique module found + MODULE_FOUND="y" + MOD_NAME="metapackages/$LOC_MATCH" + MOD_GIT_PATH="$REPO_TDE_MAIN/metapackages/$LOC_BASENAME" + MOD_GIT_PKGING_PATH="$REPO_TDE_PACKAGING/$MOD_NAME/debian" + MOD_BUILD_PATH="$TDE_BUILD_DIR/metapackages/$LOC_BASENAME" + fi fi fi MOD_BUILD_PKGING_PATH="$MOD_BUILD_PATH/debian" @@ -283,8 +295,6 @@ if [ "$bool_EXTRADEP_MOD" != "y" -a "$bool_COPY_PKGING_FILES" = "y" ]; then fi cp -R "$MOD_GIT_PKGING_PATH" "$MOD_BUILD_PKGING_PATH" - # TODO metapackage support - # Default package name # Calculate package version cd $MOD_GIT_PATH |