projects
/
unres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
712808f
)
fixed "rm tmptmp" of notexisting file in compinfo.c
author
Dawid Jagiela
<lightnir@chem.univ.gda.pl>
Tue, 8 May 2012 13:20:18 +0000
(15:20 +0200)
committer
Dawid Jagiela
<lightnir@chem.univ.gda.pl>
Tue, 8 May 2012 13:20:18 +0000
(15:20 +0200)
source/unres/src_MD/compinfo.c
patch
|
blob
|
history
diff --git
a/source/unres/src_MD/compinfo.c
b/source/unres/src_MD/compinfo.c
index
7e2b9cf
..
177dbd3
100644
(file)
--- a/
source/unres/src_MD/compinfo.c
+++ b/
source/unres/src_MD/compinfo.c
@@
-26,10
+26,11
@@
fprintf(out," write(iout,*)'++++ Compile info ++++'\n");
fprintf(out," write(iout,*)'Version %d.%-d build %d'\n",iv1,iv2,iv3);
uname(&Name);
time(&Tp);
-system("rm tmptmp; whoami > tmptmp");
+system("whoami > tmptmp");
in1=fopen("tmptmp","r");
fscanf(in1,"%s",buf1);
fclose(in1);
+system("rm tmptmp");
p1=ctime(&Tp);
p1[strlen(p1)-1]='\0';
fprintf(out," write(iout,*)'compiled %s'\n",p1);