<feed xmlns='http://www.w3.org/2005/Atom'>
<title>makepnd.git/scripts/library/README, branch makepnd</title>
<subtitle>makepnd-ng
</subtitle>
<id>https://git.cloudef.pw/makepnd.git/atom?h=makepnd</id>
<link rel='self' href='https://git.cloudef.pw/makepnd.git/atom?h=makepnd'/>
<link rel='alternate' type='text/html' href='https://git.cloudef.pw/makepnd.git/'/>
<updated>2016-10-22T10:50:54Z</updated>
<entry>
<title>makepkg: Move parseopts from library to libmakepkg</title>
<updated>2016-10-22T10:50:54Z</updated>
<author>
<name>Alad Wenter</name>
<email>alad@archlinux.info</email>
</author>
<published>2016-10-10T08:47:38Z</published>
<link rel='alternate' type='text/html' href='https://git.cloudef.pw/makepnd.git/commit/?id=1f8f0bd9ac4c11cdc1b9506f9f64d8192ecad4ee'/>
<id>urn:sha1:1f8f0bd9ac4c11cdc1b9506f9f64d8192ecad4ee</id>
<content type='text'>
parseopts is used in makepkg and other scripts such as pacman-key as a
getopt replacement.

Instead of including it in those scripts via a macro, move it to
libmakepkg/util/parseopts.sh and have scripts source this file where
appropriate.

To keep the parseopts test, a new variable was introduced:
PM_LIBMAKEPKG_DIR

Signed-off-by: Alad Wenter &lt;alad@archlinux.info&gt;
Signed-off-by: Allan McRae &lt;allan@archlinux.org&gt;
</content>
</entry>
<entry>
<title>Consistently use 'directory' instead of 'folder'</title>
<updated>2014-01-28T11:37:00Z</updated>
<author>
<name>Allan McRae</name>
<email>allan@archlinux.org</email>
</author>
<published>2014-01-28T11:37:00Z</published>
<link rel='alternate' type='text/html' href='https://git.cloudef.pw/makepnd.git/commit/?id=7ae25ac67fd4dd087791be55fa3c4997be7aac52'/>
<id>urn:sha1:7ae25ac67fd4dd087791be55fa3c4997be7aac52</id>
<content type='text'>
Signed-off-by: Allan McRae &lt;allan@archlinux.org&gt;
</content>
</entry>
<entry>
<title>Fix spelling errors using 'codespell' tool</title>
<updated>2013-04-18T03:20:13Z</updated>
<author>
<name>Anatol Pomozov</name>
<email>anatol.pomozov@gmail.com</email>
</author>
<published>2013-04-15T02:33:46Z</published>
<link rel='alternate' type='text/html' href='https://git.cloudef.pw/makepnd.git/commit/?id=769facca22db733f0a70ce6a38062d37fe8d2579'/>
<id>urn:sha1:769facca22db733f0a70ce6a38062d37fe8d2579</id>
<content type='text'>
Signed-off-by: Allan McRae &lt;allan@archlinux.org&gt;
</content>
</entry>
<entry>
<title>scripts: Add color to library/output_format.sh</title>
<updated>2013-03-08T07:04:39Z</updated>
<author>
<name>William Giokas</name>
<email>1007380@gmail.com</email>
</author>
<published>2013-03-04T08:08:42Z</published>
<link rel='alternate' type='text/html' href='https://git.cloudef.pw/makepnd.git/commit/?id=65650f2cdb04629810cb7545e35ad8af9e25b072'/>
<id>urn:sha1:65650f2cdb04629810cb7545e35ad8af9e25b072</id>
<content type='text'>
Use the same colors as makepkg in messages. Add in the 'plain' function
as well.

To use the colors, you need to include the term_colors.sh file, or add
definitions for the colors explicitly.

Signed-off-by: William Giokas &lt;1007380@gmail.com&gt;
Signed-off-by: Allan McRae &lt;allan@archlinux.org&gt;
</content>
</entry>
<entry>
<title>scripts/library: add size_to_human</title>
<updated>2012-06-26T04:39:34Z</updated>
<author>
<name>Dave Reisner</name>
<email>dreisner@archlinux.org</email>
</author>
<published>2012-05-06T22:27:43Z</published>
<link rel='alternate' type='text/html' href='https://git.cloudef.pw/makepnd.git/commit/?id=a98fce08968febe7395b30f15f070f400da089ed'/>
<id>urn:sha1:a98fce08968febe7395b30f15f070f400da089ed</id>
<content type='text'>
This function is the reverse of human_to_size, and converts integer byte
sizes to human readable SI prefixed values.

A logical extension of this might be to mimic the formatter that pacman
uses and allow a second argument to be passed in which can coerce the
size, rather than reducing until the unit count is below 1024.

Signed-off-by: Dave Reisner &lt;dreisner@archlinux.org&gt;
</content>
</entry>
<entry>
<title>scripts/library: add human_to_size</title>
<updated>2012-06-26T04:39:12Z</updated>
<author>
<name>Dave Reisner</name>
<email>dreisner@archlinux.org</email>
</author>
<published>2012-04-26T02:27:19Z</published>
<link rel='alternate' type='text/html' href='https://git.cloudef.pw/makepnd.git/commit/?id=b58489d29a1898a4bff1b5da6ca4bfb14003dbfe'/>
<id>urn:sha1:b58489d29a1898a4bff1b5da6ca4bfb14003dbfe</id>
<content type='text'>
This is a bash wrapper around an awk function that parses human readable
sizes and returns their representative values in bytes, as a string. A
small test harness is added to validate the functionality.

Signed-off-by: Dave Reisner &lt;dreisner@archlinux.org&gt;
</content>
</entry>
<entry>
<title>scripts/library: remove parse_options</title>
<updated>2012-04-24T13:38:36Z</updated>
<author>
<name>Dave Reisner</name>
<email>dreisner@archlinux.org</email>
</author>
<published>2012-04-08T19:12:27Z</published>
<link rel='alternate' type='text/html' href='https://git.cloudef.pw/makepnd.git/commit/?id=00ab01e6342b7183d5a16ae57497b19dc1c2c7dc'/>
<id>urn:sha1:00ab01e6342b7183d5a16ae57497b19dc1c2c7dc</id>
<content type='text'>
This is retired, as the two consumers of this function are now using the
new parseopts instead.

Signed-off-by: Dave Reisner &lt;dreisner@archlinux.org&gt;
</content>
</entry>
<entry>
<title>scripts/library: introduce parseopts</title>
<updated>2012-04-24T13:38:36Z</updated>
<author>
<name>Dave Reisner</name>
<email>dreisner@archlinux.org</email>
</author>
<published>2012-04-08T16:32:17Z</published>
<link rel='alternate' type='text/html' href='https://git.cloudef.pw/makepnd.git/commit/?id=8679cd68d825bfe28ba0c833494c415bcfa6d8f6'/>
<id>urn:sha1:8679cd68d825bfe28ba0c833494c415bcfa6d8f6</id>
<content type='text'>
This will replace our current options parser used in pacman-key,
makepkg, and ideally elsewhere. It follows heuristics closer to that of
GNU getopt long (and thus pacman itself), with the exception that it
does not allow for options with optional arguments. Due to the way this
parser will be used, this sort of functionality will not be needed.

Instead of relying on eval+set, options are normalized into an array,
OPTRET, which callers should expect to be populated after returning from
parseopts. This avoids problems with quotes and spaces in arguments,
assuming that the user quotes properly when passing into the
application.

A new test harness for parseopts is added in test/scripts.

Signed-off-by: Dave Reisner &lt;dreisner@archlinux.org&gt;
</content>
</entry>
<entry>
<title>scripts/library: add README file</title>
<updated>2011-06-15T14:19:10Z</updated>
<author>
<name>Allan McRae</name>
<email>allan@archlinux.org</email>
</author>
<published>2011-06-09T11:08:40Z</published>
<link rel='alternate' type='text/html' href='https://git.cloudef.pw/makepnd.git/commit/?id=53f4e431918fdfd4e2433c387da1c89c697613bf'/>
<id>urn:sha1:53f4e431918fdfd4e2433c387da1c89c697613bf</id>
<content type='text'>
Add a README file to briefly document the code snippets in the scripts
library folder.

Signed-off-by: Allan McRae &lt;allan@archlinux.org&gt;
Signed-off-by: Dan McGee &lt;dan@archlinux.org&gt;
</content>
</entry>
</feed>
