Re: [aur-general] Is it OK to submit a package that is a dozen of one-line scripts?
Nowaker writes: > I would like these oneliners as long as they have sensible names, e.g. > octal2hex instead of o2x. For interactive use it would probably be the best to provide the functions in one file and source it in your shell. This way it is much easier to modify than all those files. This bash snippet should roughly do the same: #!/bin/bash declare -A base base[b]=2 base[o]=8 base[d]=10 base[h]=16 for i in "${!base[@]}" do for o in "${!base[@]}" do source <(echo \ "function ${i}2${o} { \ echo "obase=${base[$o]};ibase=${base[$i]}; \$@\" | bc; }"\ ) done done
Re: [aur-general] Is it OK to submit a package that is a dozen of one-line scripts?
On 19.10.2014 13:52, Jesse McClure wrote: > > On Sun, Oct 19, 2014 at 05:54:55AM +0200, Karol Blazewicz wrote: >> Is it OK to submit a package that is a dozen of one-line scripts, like >> https://aur.archlinux.org/packages/b2b/ -> >> https://github.com/iorbitearth/b2b/tree/master/scripts ? > > I'm not sure the length is the relevant issue. A truly brilliant > simplification of a useful task into a one-liner might be very useful. > But these are just completely absurd. I would like these oneliners as long as they have sensible names, e.g. octal2hex instead of o2x. -- Damian Nowak www.virtkick.io
Re: [aur-general] Is it OK to submit a package that is a dozen of one-line scripts?
On Sun, Oct 19, 2014 at 05:54:55AM +0200, Karol Blazewicz wrote: > Is it OK to submit a package that is a dozen of one-line scripts, like > https://aur.archlinux.org/packages/b2b/ -> > https://github.com/iorbitearth/b2b/tree/master/scripts ? I'm not sure the length is the relevant issue. A truly brilliant simplification of a useful task into a one-liner might be very useful. But these are just completely absurd. > [wiki] should be explicit about it? I'm not sure any edit is needed. We already have: "Make sure the package is useful." from https://wiki.archlinux.org/index.php/AUR#Submitting_packages -Jesse AKA 'Trilby' on archlinux.org
[aur-general] Is it OK to submit a package that is a dozen of one-line scripts?
Is it OK to submit a package that is a dozen of one-line scripts, like https://aur.archlinux.org/packages/b2b/ -> https://github.com/iorbitearth/b2b/tree/master/scripts ? If it's frowned upon, maybe https://wiki.archlinux.org/index.php/Arch_packaging_standards should be explicit about it?