if ! -f mozilla/security/coreconf/Linux$(uname -r|sed -e 's/\-.*//'|grep -o "[0-9]\.[0-9]").mk ]; then
ln -s $(pwd)/mozilla/security/coreconf/Linux2.6.mk $(pwd)/mozilla/security/coreconf/Linux$(uname -r|sed -e 's/\-.*//'|grep -o "[0-9]\.[0-9]").mk
fi
This exits with
...]+ case $OSTYPE in
++ uname -r
++ sed -e 's/\-.*//'
++ grep -o '[0-9]\.[0-9]'
+ '' '!' -f mozilla/security/coreconf/Linux2.6.mk ']'
/var/tmp/rpm-tmp.GYDfU8: line 116: unexpected EOF while looking for matching `"'
error: Bad exit status from /var/tmp/rpm-tmp.GYDfU8 (%build)...]
I say strange because after some changes in spec file this error appeared then i don’t have modify this entry.
Anyone has an idea ?
First, I editted your post replacing the QUOTE tags by CODE tags. This sets to monospaced characters and makes things more readable
The exit output says it all: there’s something wrong with the matching of single and double quotes, check the syntax.
Weird. If I run the script as is in a terminal window, in a testdir, it reports that it cannot create the link since the source does not exist. And it should, since I have no mozilla folder in my testdir, So, the issue is not in the not-matching of quotes. Which makes me wonder if this is the entire script.
Okay, not sure on this one. If you replace this entire section with
something insanely basic (‘echo hi’) or remove it entirely do things
progress properly? I’m wondering if there could be a double-quote
earlier on that may be interfering, but then again the ‘bash -x’ output
looks just right so this is a longer shot than I think will pan out
well. Hmmmmmmmm…
Good luck.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
I have try with uniquely ln everytime with linux(uname blabla) but it can’t work in case of opensuse 11.4. I have perhaps found solution: replace $(pwd) by $pwd seems to be supported
I give some news but it’s seems to me that was i was doing the first time for being functionnal
It doesn’t work. And for reply at your question i don’t know how using echo in that case but perhaps in writing commands with rpm macros and specifications it would work