summaryrefslogtreecommitdiffstats
path: root/bin/pbfields
AgeCommit message (Collapse)AuthorFilesLines
2013-04-11Perl mod pkgbuilds use $_ddir now.Justin Davis1-20/+30
With pacman 4.1 $srcdir is no longer set outside of PKGBUILD functions. Yipee! This breaks all of my PKGBUILDs. Now we switch to storing the distribution's tarballed directory in the _ddir custom variable. We cd into $srcdir/$_ddir at the beginning of every func. Custom variable mechanics have changed in bin/pbfields as well. Instead of hard-coding _dir as an accepted field, any PKGDATA entry with a name starting with underscore (_) is considered a custom variable and printed in the PKGBUILD.
2013-04-11Remove code for obsolete customvars field.Justin Davis1-21/+0
2012-05-25Quote $(...) command expansion properly in pbfields.Justin Davis1-0/+1
2012-05-25Many changes to get to working order.Justin Davis1-28/+44
Tried to normalize style. Renames alot of things. Uses variables to make things easier on the eyes. Fix bugs that I introduced: - pkgdesc does not expand parameters - array fields not printing - generally bad logic in quoting
2012-05-25Prefer single quoting to double quoting strings.Justin Davis1-4/+5
2012-05-25Don't store packager and maintainer vars.Justin Davis1-2/+2
2012-05-25Pretty up field init a little bit.Justin Davis1-6/+7
2012-05-25Print custom variables at the end of the fields list.Justin Davis1-4/+6
2012-05-25Simplify comment header printing logic.Justin Davis1-4/+7
2012-05-25Remove old pkgver formatting code.Justin Davis1-4/+0
2012-05-25Fix typo in bashquote function.Justin Davis1-1/+1
2012-05-15Quote fields with <> chars (again).Justin Davis1-1/+1
2012-05-14Add feature to replace ver-strings with $pkgver.Justin Davis1-21/+30
Alot of logic was added to allow changing versions in mods while still preserving the version in the $_ver custom variable.
2012-04-22Add _distdir var to perl PKGBUILDs.Justin Davis1-6/+24
pbfields now recognizes a customvars field which names other fields it should print in the PKGBUILD header. These field names are prefixed with an underscore ("_").
2012-02-05Start of big rewrite of pkg tweaking.Justin Davis1-0/+99
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.