diff options
author | Justin Davis <jrcd83@gmail.com> | 2012-02-05 18:16:43 +0100 |
---|---|---|
committer | Justin Davis <jrcd83@gmail.com> | 2012-02-05 18:16:43 +0100 |
commit | ba97a989c2228e4840a0c58173b0d8f541911c69 (patch) | |
tree | 5e0fd4bae7c1270f3237f5415fef645baaf60c3d /setup | |
parent | 30669532cbd4439ed731778c08c8636491f8fc6e (diff) | |
download | genpkg-ba97a989c2228e4840a0c58173b0d8f541911c69.tar.gz genpkg-ba97a989c2228e4840a0c58173b0d8f541911c69.tar.xz |
Start of big rewrite of pkg tweaking.
The current setup is only really good for modifying PKGBUILD fields. The
modification of PKGBUILD funcs is hackish. Instead, the tweaks will be
written in a scripting language (like Io) where both PKGBUILD fields
and function code can be easily modified.
Fields should be able to be modified just like arrays, but with easier
package matching going on. PKGBUILD bash functions are simply arrays
of lines, but they are not as sophisticated. Instead they can only be
appended to.
Package files are represented as trees. Each file (PKGBUILD pkg.install)
is a child of the top-level node of the tree. Each child of the file
node is a section of the file (intro, body, end). Each section can
also have its own intro, body, and end node. In this way each bash
function is a node with its own intro, body, and end node. Prepending
to a function appends to its intro node. Appending to a function appends
to its end child node. The body cannot be modified.
Diffstat (limited to 'setup')
-rwxr-xr-x | setup | 14 |
1 files changed, 4 insertions, 10 deletions
@@ -3,9 +3,10 @@ set -e umask 022 prog=setup -binfiles=(mkpkgbuild mkpkgdata genpkg tweakmeta) -metas=(perl perl.d/ perl.d/fetchcpan perl.d/perl-dist perl.d/scrapecore) -templs=(pbfields perl-pkg) +binfiles=(genpkg mkpkgmeta modpkgmeta pbfields mergepbfields emitpkgtree) +metas=(perl perl.d/ + perl.d/fetchcpan perl.d/perl-dist perl.d/perl-dist-funcs + perl.d/scrapecore) md() { @@ -46,13 +47,6 @@ genpkg) md ~/bin do ins "metas/$m" ~/.genpkg done - - md ~/.genpkg/templ/ - for t in ${templs[@]} - do - ins "templ/$t" ~/.genpkg - done - md ~/.genpkg/var ;; tweaks) md ~/pkg/tweaks/ |