<feed xmlns='http://www.w3.org/2005/Atom'>
<title>makepnd.git/scripts/library, 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>contrib: Make pacdiff colors the same as makepkg</title>
<updated>2013-03-08T07:04:40Z</updated>
<author>
<name>William Giokas</name>
<email>1007380@gmail.com</email>
</author>
<published>2013-03-04T08:42:34Z</published>
<link rel='alternate' type='text/html' href='https://git.cloudef.pw/makepnd.git/commit/?id=f8ed8620d03e7e6fc58815bbee5b65c786fbc423'/>
<id>urn:sha1:f8ed8620d03e7e6fc58815bbee5b65c786fbc423</id>
<content type='text'>
Added an `ask` message function that emulates pacman's appearance.

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: 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>parseopts: remove superfluous continue/shift statements</title>
<updated>2013-01-03T02:03:09Z</updated>
<author>
<name>Dave Reisner</name>
<email>dreisner@archlinux.org</email>
</author>
<published>2013-01-02T03:43:20Z</published>
<link rel='alternate' type='text/html' href='https://git.cloudef.pw/makepnd.git/commit/?id=60d258819294e7b84c7ec501d9bfe6fe6965d41c'/>
<id>urn:sha1:60d258819294e7b84c7ec501d9bfe6fe6965d41c</id>
<content type='text'>
Fun fact about bash: the below is valid and will only ever print 'a'!

  fn() {
    continue 2
  }

  for x in {1..5}; do
    for y in {a..e}; do
      echo "$y"
      fn
    done
  done

Signed-off-by: Dave Reisner &lt;dreisner@archlinux.org&gt;
Signed-off-by: Allan McRae &lt;allan@archlinux.org&gt;
</content>
</entry>
<entry>
<title>paccache: adopt size_to_human</title>
<updated>2012-06-26T04:39:46Z</updated>
<author>
<name>Dave Reisner</name>
<email>dreisner@archlinux.org</email>
</author>
<published>2012-05-06T23:47:47Z</published>
<link rel='alternate' type='text/html' href='https://git.cloudef.pw/makepnd.git/commit/?id=b1bb2eaa50e436e2221a1aec9749de58e4234b44'/>
<id>urn:sha1:b1bb2eaa50e436e2221a1aec9749de58e4234b44</id>
<content type='text'>
Signed-off-by: Dave Reisner &lt;dreisner@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>
</feed>
