Commit Graph
22 Commits
Author SHA1 Message Date
Ryan Schmidt f15133325b Don't cleanup distfiles if distfiles is a symlink
It might be a symlink to the master distfiles mirror and we don't want
to risk deleting that.
2018-03-07 08:42:10 -06:00
Joshua Root 98c280c6e5 Use echo instead of installed
Slightly better performance.
2017-02-12 20:41:46 +11:00
Lawrence Velázquez 20072aff77 mpbb: Remove --port and --prefix from subcommands
The updated Buildbot configuration is now live.

Shortest deprecation periods ever!

git-svn-id: https://svn.macports.org/repository/macports/contrib/mp-buildbot@152624 d073be05-634f-4543-b044-5fe20cf6d1d6
2016-09-13 14:25:42 +00:00
Lawrence Velázquez d39d16cc99 mpbb: Implement new help system
The `--help` option has been replaced by a new `help` subcommand.
Invoking `mpbb help` displays global usage and available subcommands,
while `mpbb help <subcommand>` displays subcommand-specific usage.

Each subcommand script `mpbb-FOO` must now define a function `FOO-usage`
that prints its specific help to standard out.

git-svn-id: https://svn.macports.org/repository/macports/contrib/mp-buildbot@152528 d073be05-634f-4543-b044-5fe20cf6d1d6
2016-09-12 01:59:04 +00:00
Lawrence Velázquez d717dc3e7d mpbb: Separate global and subcommand options
À la Git, command-line options that are applicable to all subcommands
(e.g., `--prefix`) are now given before the subcommand name, while
options that are specific to particular subcommands (e.g.,
`--archive-site`) come after. For example, this:

    mpbb checkout --prefix /opt/local --svn /usr/bin/svn

is now:

    mpbb --prefix /opt/local checkout --svn /usr/bin/svn

This is a practical improvement as well as a conceptual one, as the
Buildbot configuration will be able to factor out the common command
prefix like so:

    cmd = ('./mpbb/mpbb', '--prefix', WithProperties(prefix))
    cmd_selfupdate = cmd + ('selfupdate',)
    cmd_checkout = cmd + ('checkout', '--svn-url', svnurl)
    [...]

For backwards compatibility with our current Buildbot deployment, all
subcommands except `list-subports` still accept `--prefix`.

git-svn-id: https://svn.macports.org/repository/macports/contrib/mp-buildbot@152525 d073be05-634f-4543-b044-5fe20cf6d1d6
2016-09-12 01:58:56 +00:00
Rainer Müller d3d8ba3632 buildbot: skip cleanup if port is not installed
git-svn-id: https://svn.macports.org/repository/macports/contrib/mp-buildbot@152507 d073be05-634f-4543-b044-5fe20cf6d1d6
2016-09-11 18:47:58 +00:00
Lawrence Velázquez 66ae491623 mpbb: Stick to standard 4-char-per-TAB modelines
git-svn-id: https://svn.macports.org/repository/macports/contrib/mp-buildbot@152131 d073be05-634f-4543-b044-5fe20cf6d1d6
2016-08-29 16:16:34 +00:00
Lawrence Velázquez d0ac534912 mpbb: Add modelines
Use "8" for Emacs "tab-width" and Vim "tabstop" to display tab
characters in the conventional manner.

git-svn-id: https://svn.macports.org/repository/macports/contrib/mp-buildbot@152130 d073be05-634f-4543-b044-5fe20cf6d1d6
2016-08-29 16:01:45 +00:00
Clemens Lang 033f19021e mp-buildbot: Fix SC warnings, improve err handling
Fix or disable all remaining ShellCheck warnings, add and/or improve error
handling, make sure everything is properly quoted.

git-svn-id: https://svn.macports.org/repository/macports/contrib/mp-buildbot@151475 d073be05-634f-4543-b044-5fe20cf6d1d6
2016-08-16 22:22:14 +00:00
Clemens Lang 9378092dd0 mp-buildbot: cleanup: Supress ShellCheck warnings
All of those are false positives.

git-svn-id: https://svn.macports.org/repository/macports/contrib/mp-buildbot@151471 d073be05-634f-4543-b044-5fe20cf6d1d6
2016-08-16 21:31:38 +00:00
Ryan Schmidt 6b65159f60 mp-buildbot: fix quoting in cleanup
git-svn-id: https://svn.macports.org/repository/macports/contrib/mp-buildbot@151233 d073be05-634f-4543-b044-5fe20cf6d1d6
2016-08-10 23:56:10 +00:00
Ryan Schmidt 671aa5f10e mp-buildbot: fix cleanup to actually delete distfiles again
git-svn-id: https://svn.macports.org/repository/macports/contrib/mp-buildbot@151230 d073be05-634f-4543-b044-5fe20cf6d1d6
2016-08-10 23:48:47 +00:00
Mojca Miklavec 7ff0a86707 mp-buildbot: remove trailing slash
git-svn-id: https://svn.macports.org/repository/macports/contrib/mp-buildbot@151219 d073be05-634f-4543-b044-5fe20cf6d1d6
2016-08-10 20:11:37 +00:00
Ryan Schmidt 5c4863bf34 mp-buildbot: remove debugging
git-svn-id: https://svn.macports.org/repository/macports/contrib/mp-buildbot@151159 d073be05-634f-4543-b044-5fe20cf6d1d6
2016-08-09 04:44:10 +00:00
Ryan Schmidt e1ba50b0d6 mp-buildbot: simplify cleanup output
Print only the port name when cleaning logs or build directories, not the
path of each file deleted.

git-svn-id: https://svn.macports.org/repository/macports/contrib/mp-buildbot@151157 d073be05-634f-4543-b044-5fe20cf6d1d6
2016-08-09 04:29:28 +00:00
Ryan Schmidt e984609476 mp-buildbot: improve cleanup output
git-svn-id: https://svn.macports.org/repository/macports/contrib/mp-buildbot@151141 d073be05-634f-4543-b044-5fe20cf6d1d6
2016-08-08 04:40:36 +00:00
Ryan Schmidt 99a31df240 mp-buildbot: clean up remnants of all ports, not just the one we built
git-svn-id: https://svn.macports.org/repository/macports/contrib/mp-buildbot@151112 d073be05-634f-4543-b044-5fe20cf6d1d6
2016-08-07 21:18:21 +00:00
Clemens Lang 16d73761d8 mp-buildbot: Remove implicit cleanup
Now that we have a separate cleanup step after https://trac.macports.org/changeset/151101, remove the implicit
cleanup that install-dependencies and install-port did. Adjust the
documentation where necessary.

git-svn-id: https://svn.macports.org/repository/macports/contrib/mp-buildbot@151110 d073be05-634f-4543-b044-5fe20cf6d1d6
2016-08-07 19:15:29 +00:00
Ryan Schmidt 7af8aae21e mp-buildbot: fix typo in comment
git-svn-id: https://svn.macports.org/repository/macports/contrib/mp-buildbot@151028 d073be05-634f-4543-b044-5fe20cf6d1d6
2016-08-05 19:06:18 +00:00
Ryan Schmidt 3704bc8b8b mp-buildbot: proceed to deactivate and clean other ports even if one encounters an error
git-svn-id: https://svn.macports.org/repository/macports/contrib/mp-buildbot@150810 d073be05-634f-4543-b044-5fe20cf6d1d6
2016-07-29 19:37:15 +00:00
Ryan Schmidt 0159ae18c5 mp-buildbot: cleanup after gather-archives not install-port
git-svn-id: https://svn.macports.org/repository/macports/contrib/mp-buildbot@150702 d073be05-634f-4543-b044-5fe20cf6d1d6
2016-07-27 05:48:49 +00:00
Clemens Lang 95b1f70081 contrib: Add new buildbot tooling
MacPortsAutoBuild is complicated and hasn't been refactored in a while. This is
a re-implementation of the necessary functionality that has been written by
petr@ and cal@ during MacPorts Meeting 2016 at Kranjska Gora, Slovenia.

git-svn-id: https://svn.macports.org/repository/macports/contrib/mp-buildbot@146768 d073be05-634f-4543-b044-5fe20cf6d1d6
2016-03-17 08:06:27 +00:00