[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Axiom-developer] backslashes and awk
From: |
Page, Bill |
Subject: |
[Axiom-developer] backslashes and awk |
Date: |
Thu, 26 Oct 2006 02:26:37 -0400 |
Corrected subject line. Delete previous email.
-----Original Message-----
From: address@hidden
[mailto:address@hidden
rg] On Behalf Of Page, Bill
Sent: Thursday, October 26, 2006 1:27 AM
To: Gabriel Dos Reis
Cc: address@hidden
Subject: RE: [Axiom-developer] postprop.lisp
Gaby,
Here are some simple patches to build-improvements required by
some versions of awk. Of course you need also to rebuild the
corresponding Makefile.in files.
-----
address@hidden:~/axiom.build-improvements$ hg diff .
The following patch ensures that if make is restarted, it does
not append extra rules to more-rules.mk.
diff -r b5dad223062a src/Makefile.pamphlet
--- a/src/Makefile.pamphlet Tue Oct 24 01:45:16 2006 +0000
+++ b/src/Makefile.pamphlet Wed Oct 25 21:38:06 2006 -0700
@@ -221,7 +221,7 @@ Further details are provided in [[src/al
> $(INT)/algebra/findAlgebraFiles && \
echo 30b running ${INT}/algebra/findAlgebraFiles && \
(cd $(srcdir)/algebra && . $(INT)/algebra/findAlgebraFiles) \
- >> $(builddir)/algebra/more-rules.mk
+ > $(builddir)/algebra/more-rules.mk
cd algebra && ${ENV} ${MAKE}
@
There was a minor typo in the else clause: should be tab instead
of spaces. Plus we should not escape the $ in awk since newer
versions of awk (> 3.79) treat this as a literal.
diff -r b5dad223062a src/algebra/Makefile.pamphlet
--- a/src/algebra/Makefile.pamphlet Tue Oct 24 01:45:16 2006 +0000
+++ b/src/algebra/Makefile.pamphlet Wed Oct 25 22:05:01 2006 -0700
@@ -1635,7 +1635,7 @@ deriving the dependencies by scanning th
@ (cd ${MID} ; \
if [ -z "${NOISE}" ] ; then \
echo ")co $*.spad" | ${INTERPSYS} ; \
- else \
+ else \
echo ")co $*.spad" | ${INTERPSYS} >> ${TMP}/trace ; \
fi )
@@ -1772,9 +1772,9 @@ awk -F: '{
awk -F: '{
chunk=substr($2,3,length($2)-5);
split(chunk,part," ");
- spadfile="\${MID}/"part[2]".spad";
- print spadfile": \$(srcdir)/"$1;
- print "address@hidden -R\""chunk"\" \$(srcdir)/"$1">"spadfile;
+ spadfile="${MID}/"part[2]".spad";
+ print spadfile": $(srcdir)/"$1;
+ print "address@hidden -R\""chunk"\" $(srcdir)/"$1">"spadfile;
print "";
}'
@@ -1835,9 +1835,9 @@ awk -F: '{
awk -F: '{
chunk=substr($2,3,length($2)-5);
split(chunk,part," ");
- lspfile="\${MID}/"part[1];
- print lspfile": \$(srcdir)/"$1;
- print "address@hidden -R\""chunk"\" \$(srcdir)/"$1">"lspfile;
+ lspfile="${MID}/"part[1];
+ print lspfile": $(srcdir)/"$1;
+ print "address@hidden -R\""chunk"\" $(srcdir)/"$1">"lspfile;
print "";
}'
---------
Regards,
Bill Page.
_______________________________________________
Axiom-developer mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/axiom-developer
- [Axiom-developer] backslashes and awk,
Page, Bill <=