1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-13 19:52:20 +00:00
cde/bin
Martijn Dekker d18469d608 bin/package: exit with nonzero status on build failure
Build scripts and the like ought to be able to check the results of
the build using the exit status of the build command.

bin/package,
src/cmd/INIT/package.sh:
- Add global error_status variable to keep track of the highest
  exit status of all commands using capture(). Exit with that.
- capture():
  * When capturing build output using 'tee', change the regular
    pipe construct (which doesn't preserve the exit status of pipe
    elements except the last one) to a couple of background jobs
    connected with a FIFO (named pipe). This allows getting the
    build's exit status using the "wait" command.
  * Update error_status on every invocation of capture().

(cherry picked from commit 22c3a6e1b32f3ab7eeca45adb76863982dc3e334)
2020-06-12 01:45:17 +02:00
..
ignore - added code to install an 'ar' script which appends the U flag to the first 2020-02-12 12:46:56 -05:00
mamprobe - added code to install an 'ar' script which appends the U flag to the first 2020-02-12 12:46:56 -05:00
package bin/package: exit with nonzero status on build failure 2020-06-12 01:45:17 +02:00
shtests bin/shtests: fix SHELL=/path/to/ksh assignment argument 2020-06-12 01:45:14 +02:00
silent - added code to install an 'ar' script which appends the U flag to the first 2020-02-12 12:46:56 -05:00