Commit Graph

42 Commits

Author SHA1 Message Date
Sertonix 54fd3e4117 abump: preserve in-line comments after pkgver/pkgrel
Fixes [#10133]

[#10133]: https://gitlab.alpinelinux.org/alpine/abuild/-/issues/10133
2024-04-12 11:59:56 +00:00
Hugo Osvaldo Barrera 1861b23f0c Remove --recursive from abump --help
This flag does not exist.
2024-03-05 11:27:52 +00:00
Kevin Daudt 15b6128a45 abump: source APKBUILD in subshell
As demonstrated in b7813c3 (abump: demonstrate abump environment
polution, 2022-10-15), sourcing APKBUILDs in abump polutes it's
environment.

Address that by sourcing the APKBUILD in a subshell as well as some of
the checks following it that need the information from the APKBUILD.
That information is not used any later, it's not an issue that it's
discarded outside of the subshell.
2022-10-15 11:06:53 +00:00
Natanael Copa fe74a8a760 abump: fix help/usage
- exit with success with -h is specified and use stdout
2022-06-22 16:13:07 +02:00
Samanta Navarro dc99ce423a abuild: fix typos
Typos found with codespell
2021-09-21 09:15:34 +00:00
Natanael Copa 22ff0df215 abump: fix check for clean git of APKBUILD 2021-06-10 16:37:26 +02:00
Natanael Copa fe2aca3b7d abump: check version before we build 2021-04-29 13:02:10 +02:00
Natanael Copa 250346a2ed abump: pass extra options to abuild via ABUILD_OPTS
this is so we can drop the -r option in our test suite
2021-04-29 12:38:29 +02:00
Natanael Copa 7f6f208279 abump: remove -R,--recursive option
abuild does not support it since commit 9a398eac0c (abuild: remove
recursive mode)
2021-04-29 12:10:21 +02:00
Leo 8eeca0adad *: say we are using GPL-2.0-only 2020-10-23 11:39:18 -03:00
Natanael Copa c486b3b4f3 allow override sharedir for testing
Aloow overrid sharedir with global ABUILD_SHAREDIR so we test the local
functions.sh instead of a system installed functions.sh
2019-11-07 11:42:23 +00:00
Natanael Copa f3dc428ea0 rename datadir -> sharedir
abuild uses datadir as local variable in various functions. Rename the
global datadir to sharedir to avoid confusion.
2019-11-07 11:42:23 +00:00
Jakub Jirutka 35077b43e8 replace deprecated `...` syntax with $(...) in shell scripts 2016-08-23 00:09:07 +02:00
Jakub Jirutka 948fedc5f7 indent heredocs when possible 2016-08-23 00:09:06 +02:00
Jakub Jirutka e8508f7b18 add .editorconfig and fix code formatting 2016-08-20 16:16:37 +02:00
Eivind Uggedal deb5b0091b abump: ability to override abuild command 2015-09-28 14:39:27 +02:00
Natanael Copa 5f395a8e80 abump: fix bumping repo/name-<version> 2014-10-30 09:48:22 +00:00
Natanael Copa 91e2db6baf abump: die if version is missing 2014-10-30 08:10:39 +00:00
Natanael Copa ad9db219b8 fix permissions 2014-03-31 11:49:48 +00:00
Natanael Copa 4757588caf functions: rename abuild_ver to program_version 2013-10-25 07:26:22 +00:00
Natanael Copa 1822f3f624 functions: rename prog to program 2013-10-25 07:24:46 +00:00
Natanael Copa bfee7b63f9 abump: error out on first faild package
If some package fails, then stop processing the rest. This is so we
don't risk test build the rest for the packages against wrong lib.

For example, if 'abump libfoo-2.0 foo-2.0' fails on libfoo, we don't
want testbuild foo-2.0, which might end with success against libfoo-1.

We also echo the list of packages that was not bumped, so its easy to
copy/paste next run.
2013-07-26 07:31:54 +00:00
Natanael Copa 2760f35c57 abump: print what packages failed 2013-07-22 13:57:14 +00:00
Natanael Copa cb21e18921 abump: fix the -f/--fixes option 2013-07-19 12:10:57 +00:00
Natanael Copa e1d629b6c4 abump: fix set -e issue
It appears that when the subshell has a ||, the 'set -e' within
subshell gets invalidated.

This will work as expected:

 ( set -e; false; echo "should not get here" )

While this will not work as expected:

 ( set -e; false; echo "should not get here" ) || false

We resolve it by using $? to detect the status of subshell. We also let
the exitcode indicate how many packages that failed.

While here we also refactor it so most of the loop happens within the
subshell. This lets us set (or increase) rc variable once, and it
reduces number of forks which gives slightly better performance.
2013-07-10 07:14:46 +00:00
Natanael Copa 5021e13ffa Revert "abump: verify APKBUILD's version"
We actually want be able to re-run abump without needing reset the
pkgver in case we had to fix things.

This reverts commit 8198ded868.

Conflicts:
	abump.in
2013-07-10 07:14:46 +00:00
Natanael Copa db00867ceb abump: add missing " 2013-07-09 12:57:20 +00:00
Dubiousjim b2d6b47be1 various: s/echo/msg/, s/echo/error/, tweak error messages 2013-07-09 07:12:56 +00:00
Dubiousjim 9a740d05aa abump: verify that we're in git tree 2013-07-09 07:10:27 +00:00
Dubiousjim 8198ded868 abump: verify APKBUILD's version 2013-07-09 07:09:48 +00:00
Dubiousjim a10203d0fc abump: refactor verification of APKBUILD
* includes renaming pkgname, pkgver
2013-07-09 07:09:29 +00:00
Dubiousjim 78b22a0f78 abump, functions: refactor (and verify) calculation of APKBUILD path 2013-07-09 07:09:05 +00:00
Dubiousjim ecde203930 abump: tweak upgrade/cvelist 2013-07-09 07:08:41 +00:00
Dubiousjim 512d5fd551 abump: move loop inside do_bump, refine locals, introduce subshell 2013-07-09 07:05:32 +00:00
Dubiousjim ef9fb52908 various: use long options, rework usages 2013-07-09 06:59:30 +00:00
Dubiousjim db1314ac55 various: move conf-loading and i/o to functions 2013-07-09 06:44:01 +00:00
Dubiousjim e1339a9b77 various: add descriptions, attribution, license 2013-07-08 14:48:56 +00:00
Natanael Copa ef25c6cf41 abump: add option -f to set "fixes" in commit message 2013-02-14 10:47:08 +01:00
Natanael Copa 52d6af779e abump: add -s option for security updates 2012-02-14 14:53:05 +00:00
Natanael Copa 624d98d599 abump: add -k option to keep existing built packages 2011-09-30 06:45:22 +00:00
Natanael Copa c016772849 abump: add usage and support for recursive abuild 2010-11-19 10:25:15 +00:00
Natanael Copa e1ebd05ce6 abump: install with make install 2010-11-19 10:24:15 +00:00