You are not logged in.
Looking good, I tested it using clementine as an example and it worked brilliantly even down to me specifying the -cs flag
Rauchen verboten
Offline
Just a quick FYI, public domain isn't a valid legal term outside of the US and similar (and judging by your last name you are Norwegian?).
#!/bin/bash
# Tool for Arch Linux to quickly search a tree of PKGBUILDs and build packages.
# Written by Johannes Langøy, 2010-2011. Public domain.I'd recommend giving it a valid license, such as the WTFPL or something similar (see http://en.wikipedia.org/wiki/WTFPL)
Very useful tool by the way, thanks for writing it and providing it. Now maybe I'll give the ABS a go!
You sure? Nothing about "US and similar" only on http://en.wikipedia.org/wiki/Public_domain
Well, if your country doesn't recognize the public domain, you can use MIT/ISC/WTFPL.
Last edited by JohannesSM64 (2011-07-12 19:06:59)
Offline
http://www.sqlite.org/copyright.html
Obtaining An Explicit License To Use SQLite
Even though SQLite is in the public domain and does not require a license, some users want to obtain a license anyway. Some reasons for obtaining a license include:
You are using SQLite in a jurisdiction that does not recognize the public domain.
You are using SQLite in a jurisdiction that does not recognize the right of an author to dedicate their work to the public domain.
You want to hold a tangible legal document as evidence that you have the legal right to use and distribute SQLite.
Your legal department tells you that you have to purchase a license.
Offline
A really small point, but should the default config location be at $XDG_CONFIG_HOME?
Offline
http://www.sqlite.org/copyright.html
Obtaining An Explicit License To Use SQLite
Even though SQLite is in the public domain and does not require a license, some users want to obtain a license anyway. Some reasons for obtaining a license include:
You are using SQLite in a jurisdiction that does not recognize the public domain.
You are using SQLite in a jurisdiction that does not recognize the right of an author to dedicate their work to the public domain.
You want to hold a tangible legal document as evidence that you have the legal right to use and distribute SQLite.
Your legal department tells you that you have to purchase a license.
Yeah, if you need a license you can use MIT, ISC or WTFPL.
In the style of werc:
License
Public domain, because so called 'intellectual property' is an oxymoron.Alternatively if your prefer it or your country's brain dead copyright law doesn't recognize the public domain werc is made available under the terms of the MIT and ISC licenses.
Jasonwryan: pushed
Last edited by JohannesSM64 (2011-07-13 06:16:21)
Offline
Yeah I'm sure there's no such thing as public domain in the civil (non-British) legal tradition (IANAL, but almost done law student).
The legal reason behind this is that copyright (in this civil law sense) consists of two parts: economic and moral rights. The moral rights can never be transferred -- not even by inheritance, so it's not possible to actually place your copyrighted work in the public domain, what you must do is provide a proper license which amounts to the same in the end.
All this depends on applicable law of course.
Offline
In my simple abs bash function I utilice customizepkg for auto applying the needed customizations... (it's now also an optdepends for both packer and aurget)
Just a thought, since some of your users where discussing ways to use diff and such...
Offline
customizepkg is supported now.
Last edited by JohannesSM64 (2011-07-14 16:45:55)
Offline
Added ABS sync support, thanks to jasonwryan for suggestion.
Offline
Is it currently possible to specify a subdir of $builddir for the repo it's in? I'd like to keep my build dir like ~/abs/{core,community,extra}
edit: derp, just remembered this is a bash script. I'll attempt to add it myself.
and a patch, if you want it. Kind of crude, ( I used sed to remove /var/abs/ from the match to get the repo, so it wouldn't work if searchdir isn't in /var/abs/ )
--- /home/vastlocyr/.bin/absent 2011-07-23 22:22:24.561840228 -0400
+++ /usr/bin/absent 2011-07-20 18:08:50.000000000 -0400
@@ -86,13 +86,8 @@
exit 1
fi
fi
-
- repo=$(echo ${match%/*} | sed 's/\/var\/abs\///')
- oldbuilddir=$builddir
- builddir="$builddir/$repo"
-
cp -r "$match" "$builddir" || exit
- echo "${color2}::$ec $n found in ${match%/*} from repo $color1$repo$ec and copied to $builddir"
+ echo "${color2}::$ec $n found in ${match%/*} and copied to $builddir."
cd "$builddir"/${n}
rm -rf pkg src
[[ $mode = -S ]] && { interactive "$n" || exit; }
Hope that works; I've never created a patch before.
Last edited by tacticalbread (2011-07-24 02:26:26)
don't save us from the flames
Offline
Hi, I used your builddir suggestion in the latest commit.
You got the patch order wrong btw, it's diff [-u] oldfile newfile
Offline
Hi, I used your builddir suggestion in the latest commit.
Wonderful! Thanks! :D
You got the patch order wrong btw, it's diff [-u] oldfile newfile
Hmm, I did diff -NBuar. Oh well. :P
ooh and I did diff -NBuar newfile oldfile.
Last edited by tacticalbread (2011-07-24 19:35:20)
don't save us from the flames
Offline
Flags are fine, I meant the file argument order..
Offline
Flags are fine, I meant the file argument order..
So you need to patch it the other way round, right?
Offline
No, you need to create a proper diff by transposing the file name arguments..
Last edited by JohannesSM64 (2011-07-24 23:32:44)
Offline