You are not logged in.
Hello
I want to replace the source variable in a PKGBUILD with a new one.
As you might know, the source variable can go over several lines.
An example:
PKGBUILD:
...
source=(http://foobar.org/foo.tar.bz2
bar.patch)
...
Then, after executing a script with sed/awk/whatever, it should look like this:
new PKGBUILD:
...
source=(http://foobar.org/foo.tar.bz2
bar.patch
general.patch)
...
I just can't solve this problem...not a shell scripting guru.
Thanks in advance
greetings naeg
Offline
awk '/^[[:space:]]*source=/,/)/' PKGBUILD
should get you on your way...
Offline
We, from ArchMobile, want to make all our changes we do to the PKGBUILDs from Arch Linux with the use of patches. So, these patches have to be added to the source variable, and I don't want to do this by hand to all those PKGBUILDs.
greetings naeg
Offline