Commit Graph

24 Commits

Author SHA1 Message Date
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