Skip to content

Commit

Permalink
Implement using an existing geany(-plugins) source tree for building
Browse files Browse the repository at this point in the history
  • Loading branch information
eht16 committed Feb 20, 2022
1 parent 406d4e4 commit f01890e
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 deletions.
4 changes: 4 additions & 0 deletions builders/README.md
Expand Up @@ -56,12 +56,16 @@ the builds of Geany and Geany-Plugins for the various targets.
-d, --distro DISTRO Build for target Debian DISTRO (e.g. "bullseye",
can be specified multiple times
-g, --geany Build Geany
--geany-source Path to a Geany source directory (optional, cloned from GIT if missing)
--geany-plugins-source Path to a Geany-Plugins source directory (optional, cloned from GIT if missing)
-h Show this help screen
-l, --log-to-stdout Log build output additionally to stdout
-m, --mingw Build for target Mingw-w64
-p, --geany-plugins Build Geany-Plugins
-r, --rebuild-images Rebuild Docker images before start building
(images are rebuilt automatically every 30 days)
-s, --sudo Use "sudo" for Docker commands


Example to build Geany and Geany-Plugins for Debian Bullseye, Debian Sid and Windows:

Expand Down
23 changes: 19 additions & 4 deletions builders/start_build.sh
Expand Up @@ -14,12 +14,15 @@
# -d, --distro DISTRO Build for target Debian DISTRO (e.g. "bullseye",
# can be specified multiple times
# -g, --geany Build Geany
# --geany-source Path to a Geany source directory (optional, cloned from GIT if missing)
# --geany-plugins-source Path to a Geany-Plugins source directory (optional, cloned from GIT if missing)
# -h Show this help screen
# -l, --log-to-stdout Log build output additionally to stdout
# -m, --mingw Build for target Mingw-w64
# -p, --geany-plugins Build Geany-Plugins
# -r, --rebuild-images Rebuild Docker images before start building
# (images are rebuilt automatically every 30 days)
# -s, --sudo Use "sudo" for Docker commands


DOCKER_IMAGE_MAX_AGE_DAYS=30
Expand Down Expand Up @@ -145,7 +148,7 @@ build_mingw() {
if [ -n "${DO_GEANY}" ]; then
log - "Building Geany for Windows"
if [ -n "${GEANY_SOURCE}" ]; then
source_volume="--volume \"${GEANY_SOURCE}:/geany-source/\":ro"
source_volume="--volume ${GEANY_SOURCE}:/geany-source/:ro"
else
source_volume=
fi
Expand All @@ -166,7 +169,7 @@ build_mingw() {
if [ -n "${DO_GEANY_PLUGINS}" ]; then
log - "Building Geany-Plugins for Windows"
if [ -n "${GEANY_PLUGINS_SOURCE}" ]; then
source_volume="--volume \"${GEANY_PLUGINS_SOURCE}:/geany-plugins-source/\":ro"
source_volume="--volume ${GEANY_PLUGINS_SOURCE}:/geany-plugins-source/:ro"
else
source_volume=
fi
Expand All @@ -191,8 +194,8 @@ usage() {
echo " -d, --distro DISTRO Build for target Debian DISTRO (e.g. \"bullseye\","
echo " can be specified multiple times"
echo " -g, --geany Build Geany"
echo "--geany-source Path to a Geany source directory (optional)"
echo "--geany-plugins-source Path to a Geany-Plugins source directory (optional)"
echo "--geany-source Path to a Geany source directory (optional, cloned from GIT if missing)"
echo "--geany-plugins-source Path to a Geany-Plugins source directory (optional, cloned from GIT if missing)"
echo " -h Show this help screen"
echo " -l, --log-to-stdout Log build output additionally to stdout"
echo " -m, --mingw Build for target Mingw-w64"
Expand All @@ -219,6 +222,16 @@ parse_command_line_options() {
DO_GEANY=1
shift
;;
--geany-source)
GEANY_SOURCE="${2}"
shift
shift
;;
--geany-plugins-source)
GEANY_PLUGINS_SOURCE="${2}"
shift
shift
;;
-l|--log-to-stdout)
DO_LOG_TO_STDOUT=1
shift
Expand Down Expand Up @@ -253,6 +266,8 @@ DO_IMAGE_REBUILD=
DO_GEANY=
DO_GEANY_PLUGINS=
DO_LOG_TO_STDOUT=
GEANY_SOURCE=
GEANY_PLUGINS_SOURCE=


main() {
Expand Down

0 comments on commit f01890e

Please sign in to comment.