From 8e5744170c30d50ef1f3e3a3e52c595870c6e50a Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sat, 1 Jun 2013 19:23:19 -0600 Subject: librestage: clean up, add unit tests Contained the text "# TODO refactor this", and I can't just stick to that fragment of code, can I? I actually didn't change too much, despite what the diff looks like. - move everything into a main() routine - redo the usage() text - rename a few variables - fix where "${#repos}" should have been "${#repos[@]}" - use [[...]] instead of [...] - use "if A; then B; else C; fi" instead of "A || C && B" - use CARCH instead of looping over every possible architecture. - only look for files that match PKGEXT, as set in makepkg.conf - pull out duplicate code for error handling - don't warn when creating "staging/REPONAME" --- src/libretools.conf | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/libretools.conf') diff --git a/src/libretools.conf b/src/libretools.conf index 54b4323..947ee58 100644 --- a/src/libretools.conf +++ b/src/libretools.conf @@ -19,10 +19,6 @@ DIFFTOOL=`which vimdiff gvimdiff meld colordiff diff 2>/dev/null|sed 's/\s.*//;1 # precedence on the path cache (the last path added replaces the rest) REPOS=('core' 'libre' 'extra' 'community' 'libre-testing' 'social' 'sugar' 'pcr' 'java') -## The architectures -## Used by `librestage` -ARCHES=('i686' 'x86_64' 'mips64el' 'any') - ################################################################################ # abslibre # ################################################################################ -- cgit v1.2.3-54-g00ecf