From 8465039bb6a4f2e8886d17f61d7343892c5b9b45 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 3 Feb 2017 19:23:59 +0300 Subject: Add freetype package. --- packages/freetype.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 packages/freetype.sh diff --git a/packages/freetype.sh b/packages/freetype.sh new file mode 100644 index 0000000..659cb60 --- /dev/null +++ b/packages/freetype.sh @@ -0,0 +1,12 @@ +SRCURL=git://git.sv.nongnu.org/freetype/freetype2.git + +ENV_PATH="bin:lib:include" +ENV_LD_LIBRARY_PATH="lib" +ENV_PKG_CONFIG_PATH="lib/pkgconfig" +ENV_LDFLAGS_PATH="lib" +ENV_MANPATH="share/man" +ENV_ACLOCAL_PATH="share/aclocal" +ENV_CPPFLAGS_PATH="include" + +BUILD_TYPE="automake" +SRC_INIT_COMMAND="./autogen.sh" -- cgit v1.2.3-70-g09d2 From b6c965589911ab9ef671d692612b0df9cf97b1fb Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 3 Feb 2017 21:38:19 +0300 Subject: Add support for script variables for override package path variabled. New variables: OVERRIDE_ENV_NAME Example: OVERRIDE_ENV_MANPATH="/dir" --- scripts/include/common.sh | 36 ++++++++++++++++++++++-------------- 1 file changed, 22 insertions(+), 14 deletions(-) diff --git a/scripts/include/common.sh b/scripts/include/common.sh index d57879b..6c2a7e7 100644 --- a/scripts/include/common.sh +++ b/scripts/include/common.sh @@ -244,44 +244,52 @@ function run_switch_branch { } function repack_paths { - if [[ "$1" == "" ]]; then + envvar="$1" + if [[ "$2" != "" ]]; then + envvar="$2" + fi + if [[ "$envvar" == "" ]]; then return fi IFS=":" packedpaths="" - for var in $1 + for var in $envvar do packedpaths="${packedpaths}${bindir}/$var:" done unset IFS - echo "export $2=\"${packedpaths}\$$2\"" >>"${envfile}" + echo "export $3=\"${packedpaths}\$$3\"" >>"${envfile}" check_error $? } function repack_flags { - if [[ "$1" == "" ]]; then + envvar="$1" + if [[ "$2" != "" ]]; then + envvar="$2" + fi + if [[ "$envvar" == "" ]]; then return fi IFS=":" packedpaths="" - for var in $1 + for var in $envvar do - packedpaths="${packedpaths}${3}${bindir}/$var " + packedpaths="${packedpaths}${4}${bindir}/$var " done unset IFS - echo "export $2=\"${packedpaths}\$$2\"" >>"${envfile}" + echo "export $3=\"${packedpaths}\$$3\"" >>"${envfile}" check_error $? } function package_use { echo "package_use" - repack_paths "$ENV_PATH" "PATH" - repack_paths "$ENV_LD_LIBRARY_PATH" "LD_LIBRARY_PATH" - repack_paths "$ENV_PKG_CONFIG_PATH" "PKG_CONFIG_PATH" - repack_paths "$ENV_MANPATH" "MANPATH" - repack_paths "$ENV_ACLOCAL_PATH" "ACLOCAL_PATH" - repack_flags "$ENV_LDFLAGS_PATH" "LDFLAGS" "-L" - repack_flags "$ENV_CPPFLAGS_PATH" "CPPFLAGS" "-I" + repack_paths "$ENV_PATH" "$OVERRIDE_ENV_PATH" "PATH" + repack_paths "$ENV_LD_LIBRARY_PATH" "$OVERRIDE_ENV_LD_LIBRARY_PATH" "LD_LIBRARY_PATH" + repack_paths "$ENV_PKG_CONFIG_PATH" "$OVERRIDE_ENV_PKG_CONFIG_PATH" "PKG_CONFIG_PATH" + repack_paths "$ENV_MANPATH" "$OVERRIDE_ENV_MANPATH" "MANPATH" + repack_paths "$ENV_ACLOCAL_PATH" "$OVERRIDE_ENV_ACLOCAL_PATH" "ACLOCAL_PATH" + repack_flags "$ENV_LDFLAGS_PATH" "$OVERRIDE_ENV_LDFLAGS_PATH" "LDFLAGS" "-L" + repack_flags "$ENV_CPPFLAGS_PATH" "$OVERRIDE_ENV_CPPFLAGS_PATH" "CPPFLAGS" "-I" } function common_use_package { -- cgit v1.2.3-70-g09d2 From 6471091f99c78563e785f8740dcab0dc87825ee4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 3 Feb 2017 21:46:19 +0300 Subject: Add support for include command in packages. for include other package definition. --- scripts/include/common.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/include/common.sh b/scripts/include/common.sh index 6c2a7e7..e54922b 100644 --- a/scripts/include/common.sh +++ b/scripts/include/common.sh @@ -368,3 +368,7 @@ function package_build { run_make run_make_install } + +function include { + source "./$1.sh" +} -- cgit v1.2.3-70-g09d2 From 3560a75367079de74aa34d2a58fdaf417e892ef4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 3 Feb 2017 21:49:51 +0300 Subject: Add SDL2 packages based on SDL packages. --- packages/SDL2.sh | 5 +++++ packages/SDL2_image.h | 5 +++++ packages/SDL2_mixer.sh | 5 +++++ packages/SDL2_net.sh | 5 +++++ packages/SDL2_ttf.sh | 5 +++++ 5 files changed, 25 insertions(+) create mode 100644 packages/SDL2.sh create mode 100644 packages/SDL2_image.h create mode 100644 packages/SDL2_mixer.sh create mode 100644 packages/SDL2_net.sh create mode 100644 packages/SDL2_ttf.sh diff --git a/packages/SDL2.sh b/packages/SDL2.sh new file mode 100644 index 0000000..feb1a13 --- /dev/null +++ b/packages/SDL2.sh @@ -0,0 +1,5 @@ +include "SDL" + +DEFAULT_BRANCH="default" + +ENV_CPPFLAGS_PATH="include/SDL2" diff --git a/packages/SDL2_image.h b/packages/SDL2_image.h new file mode 100644 index 0000000..aaa0399 --- /dev/null +++ b/packages/SDL2_image.h @@ -0,0 +1,5 @@ +include "SDL_image" + +DEFAULT_BRANCH="default" + +ENV_CPPFLAGS_PATH="include/SDL2" diff --git a/packages/SDL2_mixer.sh b/packages/SDL2_mixer.sh new file mode 100644 index 0000000..9168396 --- /dev/null +++ b/packages/SDL2_mixer.sh @@ -0,0 +1,5 @@ +include "SDL_mixer" + +DEFAULT_BRANCH="default" + +ENV_CPPFLAGS_PATH="include/SDL2" diff --git a/packages/SDL2_net.sh b/packages/SDL2_net.sh new file mode 100644 index 0000000..07fb011 --- /dev/null +++ b/packages/SDL2_net.sh @@ -0,0 +1,5 @@ +include "SDL_net" + +DEFAULT_BRANCH="default" + +ENV_CPPFLAGS_PATH="include/SDL2" diff --git a/packages/SDL2_ttf.sh b/packages/SDL2_ttf.sh new file mode 100644 index 0000000..386091a --- /dev/null +++ b/packages/SDL2_ttf.sh @@ -0,0 +1,5 @@ +include "SDL_ttf" + +DEFAULT_BRANCH="default" + +ENV_CPPFLAGS_PATH="include/SDL2" -- cgit v1.2.3-70-g09d2 From 9b9fe1fd0d14a862f107617f844812d7833a0eb0 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 3 Feb 2017 22:47:18 +0300 Subject: Fix typo in package name (SDL2_image) --- packages/SDL2_image.h | 5 ----- packages/SDL2_image.sh | 5 +++++ 2 files changed, 5 insertions(+), 5 deletions(-) delete mode 100644 packages/SDL2_image.h create mode 100644 packages/SDL2_image.sh diff --git a/packages/SDL2_image.h b/packages/SDL2_image.h deleted file mode 100644 index aaa0399..0000000 --- a/packages/SDL2_image.h +++ /dev/null @@ -1,5 +0,0 @@ -include "SDL_image" - -DEFAULT_BRANCH="default" - -ENV_CPPFLAGS_PATH="include/SDL2" diff --git a/packages/SDL2_image.sh b/packages/SDL2_image.sh new file mode 100644 index 0000000..aaa0399 --- /dev/null +++ b/packages/SDL2_image.sh @@ -0,0 +1,5 @@ +include "SDL_image" + +DEFAULT_BRANCH="default" + +ENV_CPPFLAGS_PATH="include/SDL2" -- cgit v1.2.3-70-g09d2 From eb4b914cd5148789bfcdeae86a7fc06f2c100342 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 5 Feb 2017 04:25:36 +0300 Subject: Add musl package. --- packages/musl.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 packages/musl.sh diff --git a/packages/musl.sh b/packages/musl.sh new file mode 100644 index 0000000..3ee82b8 --- /dev/null +++ b/packages/musl.sh @@ -0,0 +1,9 @@ +SRCURL=git://git.musl-libc.org/musl +DEFAULT_BRANCH="master" + +ENV_PATH="bin" +ENV_LD_LIBRARY_PATH="lib" +ENV_LDFLAGS_PATH="lib" +ENV_CPPFLAGS_PATH="include" + +BUILD_TYPE="configure" -- cgit v1.2.3-70-g09d2 From f5166c48d66a290dd8461ea1d2d2b5cac6b3f966 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 6 Feb 2017 11:29:33 +0300 Subject: Disable python libs in libxml2 package. --- packages/libxml2.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/libxml2.sh b/packages/libxml2.sh index 894e58b..b649b8f 100644 --- a/packages/libxml2.sh +++ b/packages/libxml2.sh @@ -9,4 +9,4 @@ ENV_ACLOCAL_PATH="share/aclocal" ENV_CPPFLAGS_PATH="include/libxml2" BUILD_TYPE="automake" -CONFIGURE_FLAGS="--with-python-install-dir="${bindir}/lib/python"" +CONFIGURE_FLAGS="--without-python" \ No newline at end of file -- cgit v1.2.3-70-g09d2 From 4c2d4aa8560bd2226957b437b9cf3af80434dc44 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 6 Feb 2017 16:34:51 +0300 Subject: Add package physfs1. --- packages/physfs1.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 packages/physfs1.sh diff --git a/packages/physfs1.sh b/packages/physfs1.sh new file mode 100644 index 0000000..5dc9a95 --- /dev/null +++ b/packages/physfs1.sh @@ -0,0 +1,11 @@ +SRCTYPE=hg +SRCURL=https://hg.icculus.org/icculus/physfs/ +DEFAULT_BRANCH="stable-1.0" + +ENV_PATH="bin:lib:include" +ENV_LD_LIBRARY_PATH="lib" +ENV_LDFLAGS_PATH="lib" +ENV_CPPFLAGS_PATH="include" + +BUILD_TYPE="automake" +SRC_INIT_COMMAND="./bootstrap" -- cgit v1.2.3-70-g09d2 From eca2e3e1ff782793bdfd4c339995bb714bdc5613 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 7 Feb 2017 03:22:58 +0300 Subject: Add gettext package. --- packages/gettext.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 packages/gettext.sh diff --git a/packages/gettext.sh b/packages/gettext.sh new file mode 100644 index 0000000..9c3b01c --- /dev/null +++ b/packages/gettext.sh @@ -0,0 +1,11 @@ +SRCURL=git://git.savannah.gnu.org/gettext.git + +ENV_PATH="bin:lib:include:lib/gettext" +ENV_LD_LIBRARY_PATH="lib" +ENV_LDFLAGS_PATH="lib" +ENV_MANPATH="share/man" +ENV_CPPFLAGS_PATH="include" +ENV_ACLOCAL_PATH="share/aclocal" + +BUILD_TYPE="automake" +SRC_INIT_COMMAND="./autogen.sh" -- cgit v1.2.3-70-g09d2 From bff9c4ebee5b03bb7a9fc09e1c4a1d722849e52f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 7 Feb 2017 18:37:08 +0300 Subject: Add pugixml package. --- packages/pugixml.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 packages/pugixml.sh diff --git a/packages/pugixml.sh b/packages/pugixml.sh new file mode 100644 index 0000000..7f71d80 --- /dev/null +++ b/packages/pugixml.sh @@ -0,0 +1,8 @@ +SRCURL=https://github.com/zeux/pugixml.git + +ENV_PATH="lib:include" +ENV_LD_LIBRARY_PATH="lib" +ENV_LDFLAGS_PATH="lib" +ENV_CPPFLAGS_PATH="include" + +BUILD_TYPE="cmake" -- cgit v1.2.3-70-g09d2 From 8a29451260cb6fea479af6d1f8efadaa51b191a9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 7 Feb 2017 18:58:56 +0300 Subject: Add tinyxml2 package. --- packages/tinyxml2.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 packages/tinyxml2.sh diff --git a/packages/tinyxml2.sh b/packages/tinyxml2.sh new file mode 100644 index 0000000..a7f4e0c --- /dev/null +++ b/packages/tinyxml2.sh @@ -0,0 +1,9 @@ +SRCURL=https://github.com/leethomason/tinyxml2.git + +ENV_PATH="lib:include" +ENV_LD_LIBRARY_PATH="lib" +ENV_LDFLAGS_PATH="lib" +ENV_PKG_CONFIG_PATH="lib/pkgconfig" +ENV_CPPFLAGS_PATH="include" + +BUILD_TYPE="cmake" -- cgit v1.2.3-70-g09d2 From 8b903a56377c08a4707b29f33b033985160df907 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 12 Feb 2017 20:34:41 +0300 Subject: Add libzip package. --- packages/libzip.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 packages/libzip.sh diff --git a/packages/libzip.sh b/packages/libzip.sh new file mode 100644 index 0000000..6e514db --- /dev/null +++ b/packages/libzip.sh @@ -0,0 +1,12 @@ +SRCTYPE=hg +SRCURL=http://hg.nih.at/libzip/ +DEFAULT_BRANCH="default" + +ENV_PATH="bin:lib:include" +ENV_LD_LIBRARY_PATH="lib" +ENV_PKG_CONFIG_PATH="lib/pkgconfig" +ENV_LDFLAGS_PATH="lib" +ENV_MANPATH="share/man" +ENV_CPPFLAGS_PATH="include:lib/libzip/include" + +BUILD_TYPE="automake" -- cgit v1.2.3-70-g09d2 From 69b5d20e8f31f5e0097b20137d993a19eb2936aa Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 13 Feb 2017 03:58:34 +0300 Subject: Add python package (cpython) --- packages/python.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 packages/python.sh diff --git a/packages/python.sh b/packages/python.sh new file mode 100644 index 0000000..b32f778 --- /dev/null +++ b/packages/python.sh @@ -0,0 +1,10 @@ +SRCURL=https://github.com/python/cpython.git + +ENV_PATH="bin:lib:include" +ENV_LD_LIBRARY_PATH="lib" +ENV_PKG_CONFIG_PATH="lib/pkgconfig" +ENV_LDFLAGS_PATH="lib" +ENV_MANPATH="share/man" +ENV_CPPFLAGS_PATH="include" + +BUILD_TYPE="configure" -- cgit v1.2.3-70-g09d2 From cbb68a99b5c02c5601fb9e6c135d1b4e7764068d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 17 Feb 2017 14:40:31 +0300 Subject: Add support for environment variable jobs. It set jobs number for make. If jobs unset, it autodetected based on number of cpu cores. --- scripts/include/common.sh | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/scripts/include/common.sh b/scripts/include/common.sh index e54922b..e348e5d 100644 --- a/scripts/include/common.sh +++ b/scripts/include/common.sh @@ -165,9 +165,19 @@ function run_cmake { } function run_make { - echo "make" - make + if [[ "${jobs}" == "" ]]; then + if [ -f "/proc/cpuinfo" ]; then + jobs="$(cat /proc/cpuinfo|grep processor|wc -l)" + else + jobs="1" + fi + fi + j=" -j${jobs}" + + echo "make$j" + make$j check_error $? + unset j } function run_make_install { -- cgit v1.2.3-70-g09d2 From 1528b12272f6188677eadd9ace5bd1c994f326a9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 17 Feb 2017 14:41:36 +0300 Subject: Add gcc package. --- packages/gcc.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 packages/gcc.sh diff --git a/packages/gcc.sh b/packages/gcc.sh new file mode 100644 index 0000000..af03647 --- /dev/null +++ b/packages/gcc.sh @@ -0,0 +1,12 @@ +# original url +SRCURL=git://gcc.gnu.org/git/gcc.git +# mirror +#SRCURL=https://gitlab.com/4144/gcc.git + +ENV_PATH="bin" +ENV_MANPATH="share/man" + +BUILD_TYPE="automake" + +CONFIGURE_FLAGS="--enable-languages=c,c++,lto" +ENV_LD_LIBRARY_PATH="lib:lib64:lib32" -- cgit v1.2.3-70-g09d2 From 26963774ad4028ed7ccf8316b44f5d3c42ff7706 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 17 Feb 2017 18:36:55 +0300 Subject: Add script buildonly.sh for build without environment file creation. --- scripts/buildonly.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 scripts/buildonly.sh diff --git a/scripts/buildonly.sh b/scripts/buildonly.sh new file mode 100755 index 0000000..5a45ab8 --- /dev/null +++ b/scripts/buildonly.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +export package=$1 +source ../scripts/include/common.sh + +common_package_init + +common_build_init + +common_run_package +package_build -- cgit v1.2.3-70-g09d2 From da4686d2cab1914719643f6a0d7e53adf7e2666c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 17 Feb 2017 18:41:48 +0300 Subject: Add script createenv.sh for create environment file. --- scripts/createenv.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 scripts/createenv.sh diff --git a/scripts/createenv.sh b/scripts/createenv.sh new file mode 100755 index 0000000..476a9f9 --- /dev/null +++ b/scripts/createenv.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +export package=$1 +source ../scripts/include/common.sh + +common_package_init + +common_build_init + +common_run_package +common_use_package -- cgit v1.2.3-70-g09d2 From 4f66c6c7df447be0a2bfc404c2371ef206a8fdc9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 17 Feb 2017 19:08:28 +0300 Subject: Add script for create environment file from more than one package. New script name: createenvs.sh envname package1 [package2 ...] Example: ./createenvs.sh sdl1 SDL SDL_image SDL_ttf SDL_net SDL_gfx SDL_mixer --- scripts/createenvs.sh | 5 +++++ scripts/include/common.sh | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100755 scripts/createenvs.sh diff --git a/scripts/createenvs.sh b/scripts/createenvs.sh new file mode 100755 index 0000000..a5fba23 --- /dev/null +++ b/scripts/createenvs.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +source ../scripts/include/common.sh + +common_use_packages $* diff --git a/scripts/include/common.sh b/scripts/include/common.sh index e348e5d..e7e8f8c 100644 --- a/scripts/include/common.sh +++ b/scripts/include/common.sh @@ -317,6 +317,43 @@ function common_use_package { check_error $? } +function common_use_packages { + cd "${scriptsdir}" + check_error $? + + export envname="$1" + export installname0="${installname}" + export envfile="../env/run${envname}.sh" + echo "#!/bin/bash" >"${envfile}" + check_error $? + echo "" >>"${envfile}" + shift + names="$*" + IFS=" " + for package in $names + do + export installname="${installname0}" + unset ENV_PATH + unset ENV_LD_LIBRARY_PATH + unset ENV_PKG_CONFIG_PATH + unset ENV_MANPATH + unset ENV_ACLOCAL_PATH + unset ENV_LDFLAGS_PATH + unset ENV_CPPFLAGS_PATH + + common_package_init + common_build_init + common_run_package + package_use + check_error $? + done + unset IFS + echo "\$*" >>"${envfile}" + check_error $? + chmod 0755 "${envfile}" + check_error $? +} + function package_get_source { echo "package_get_source" run_clone "${SRCURL}" -- cgit v1.2.3-70-g09d2 From d5599a0a6c9b0f53765c894a2f1bbf8880f44d07 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 17 Feb 2017 19:12:55 +0300 Subject: Add package ustl. --- packages/ustl.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 packages/ustl.sh diff --git a/packages/ustl.sh b/packages/ustl.sh new file mode 100644 index 0000000..ad58c42 --- /dev/null +++ b/packages/ustl.sh @@ -0,0 +1,10 @@ +SRCURL=https://github.com/msharov/ustl.git +DEFAULT_BRANCH="master" + +ENV_LD_LIBRARY_PATH="lib" +ENV_LDFLAGS_PATH="lib" +ENV_CPPFLAGS_PATH="include" + +BUILD_TYPE="configure" + +ENABLE_SAME_DIR_BUILD="true" -- cgit v1.2.3-70-g09d2 From 59b1bb420f2a713e8efa96fd1edba44f37676f94 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 17 Feb 2017 19:56:20 +0300 Subject: Disable multilib in gcc package. --- packages/gcc.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/gcc.sh b/packages/gcc.sh index af03647..f1f59cb 100644 --- a/packages/gcc.sh +++ b/packages/gcc.sh @@ -8,5 +8,5 @@ ENV_MANPATH="share/man" BUILD_TYPE="automake" -CONFIGURE_FLAGS="--enable-languages=c,c++,lto" +CONFIGURE_FLAGS="--enable-languages=c,c++,lto --disable-multilib" ENV_LD_LIBRARY_PATH="lib:lib64:lib32" -- cgit v1.2.3-70-g09d2 From 3b5049928a6c82ce72f99cf07ef40499f027160d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 19 Feb 2017 03:15:27 +0300 Subject: Add script for update all downloaded sources. New script: updatesrcall.sh --- scripts/include/common.sh | 13 +++++++++++++ scripts/updatesrcall.sh | 5 +++++ 2 files changed, 18 insertions(+) create mode 100755 scripts/updatesrcall.sh diff --git a/scripts/include/common.sh b/scripts/include/common.sh index e7e8f8c..382f8a5 100644 --- a/scripts/include/common.sh +++ b/scripts/include/common.sh @@ -354,6 +354,19 @@ function common_use_packages { check_error $? } +function common_update_source_all { + cd ../src/ + check_error $? + files="*" + for package in $files + do + cd ../scripts/ + ./updatesrc.sh $package + check_error $? + done + unset files +} + function package_get_source { echo "package_get_source" run_clone "${SRCURL}" diff --git a/scripts/updatesrcall.sh b/scripts/updatesrcall.sh new file mode 100755 index 0000000..6f42573 --- /dev/null +++ b/scripts/updatesrcall.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +source ../scripts/include/common.sh + +common_update_source_all -- cgit v1.2.3-70-g09d2