mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
XmPrivate.h: Avoid whitespace problems (IMPROVED)
When applying a patch, "git am" strips trailing whitespace, although they are present in the git formatted-patch. This way the committed file will be slightly different than the file re-generated by extractprototype.h It shouldn't hurt, but next run of extractprototype.h will add trailing spaces again and the resulting diff on XmPrivate.h will include more changes than actually needed. This may break some viscious circle after applying the patch, so enabling regeneration on LinuxArchitecture again. This patch does not add XmeFlushIconFileCache() needed by dtcreate.
This commit is contained in:
parent
71962e580d
commit
3eaeffaf7e
3 changed files with 18 additions and 18 deletions
|
@ -14,10 +14,9 @@ BuildIncludes($(HEADERS),Xm,..)
|
||||||
|
|
||||||
XCOMM We do not build with Motif sources on Linux, so this will never
|
XCOMM We do not build with Motif sources on Linux, so this will never
|
||||||
XCOMM do the right thing on that platform. Just leave XmPrivate.h as-is.
|
XCOMM do the right thing on that platform. Just leave XmPrivate.h as-is.
|
||||||
#if !defined(LinuxArchitecture)
|
|
||||||
XmPrivate.h: extractprototype.awk
|
XmPrivate.h: extractprototype.awk
|
||||||
awk -f extractprototype.awk $(MLIBSRC)/Xm/$(ALLHEADERS) > $@ || rm -f $@
|
awk -f extractprototype.awk $(MLIBSRC)/Xm/$(ALLHEADERS) > $@ || rm -f $@
|
||||||
#endif
|
|
||||||
|
|
||||||
depend::
|
depend::
|
||||||
|
|
||||||
|
|
|
@ -24,6 +24,7 @@ function proto() {
|
||||||
printf("/* Extracted from %s */\n", n);
|
printf("/* Extracted from %s */\n", n);
|
||||||
curfile = FILENAME;
|
curfile = FILENAME;
|
||||||
}
|
}
|
||||||
|
sub(/[ \t]*$/, "", line);
|
||||||
print line;
|
print line;
|
||||||
getline;
|
getline;
|
||||||
if ( pattern == 0) {
|
if ( pattern == 0) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue