Skip to content
Snippets Groups Projects
Commit b7df1bcc authored by Fredrik Hübinette (Hubbe)'s avatar Fredrik Hübinette (Hubbe)
Browse files

some bugfixes..

Rev: bin/export.pike:1.31
Rev: bin/install.pike:1.50
Rev: bin/test_pike.pike:1.40
parent 9a1a7e74
Branches
Tags
No related merge requests found
#!/usr/local/bin/pike #!/usr/local/bin/pike
/* $Id: export.pike,v 1.30 2000/03/27 00:45:25 hubbe Exp $ */ /* $Id: export.pike,v 1.31 2000/03/27 20:29:45 hubbe Exp $ */
#include <simulate.h> #include <simulate.h>
import Stdio; import Stdio;
...@@ -205,7 +205,7 @@ int main(int argc, string *argv) ...@@ -205,7 +205,7 @@ int main(int argc, string *argv)
object o=Stdio.File(); object o=Stdio.File();
int first=1; int first=1;
foreach(files/50,files) foreach(files/50.0,files)
{ {
if(Process.create_process(({"tar", if(Process.create_process(({"tar",
first?"cvf":"rvf", first?"cvf":"rvf",
......
...@@ -24,7 +24,17 @@ int istty() ...@@ -24,7 +24,17 @@ int istty()
if(!istty_cache) if(!istty_cache)
{ {
istty_cache=!!Stdio.stdin->tcgetattr(); istty_cache=!!Stdio.stdin->tcgetattr();
if(!istty_cache) istty_cache=-1; if(!istty_cache)
{
istty_cache=-1;
}else{
switch(getenv("TERM"))
{
case "dumb":
case "emacs":
istty_cache=-1;
}
}
} }
return istty_cache>0; return istty_cache>0;
#endif #endif
...@@ -514,7 +524,7 @@ done ...@@ -514,7 +524,7 @@ done
string tmpmsg="."; string tmpmsg=".";
string tararg="cf"; string tararg="cf";
foreach(to_export/50, array files_to_tar) foreach(to_export/50.0, array files_to_tar)
{ {
status("Creating",tmpname+".tar",tmpmsg); status("Creating",tmpname+".tar",tmpmsg);
tmpmsg+="."; tmpmsg+=".";
...@@ -1127,7 +1137,7 @@ void do_install() ...@@ -1127,7 +1137,7 @@ void do_install()
foreach(to_dump, string mod) rm(mod+".o"); foreach(to_dump, string mod) rm(mod+".o");
/* Dump 50 modules at a time */ /* Dump 50 modules at a time */
write("\n"); write("\n");
foreach(to_dump/50,to_dump) foreach(to_dump/50.0,to_dump)
{ {
write(" "); write(" ");
Process.create_process( ({pike, Process.create_process( ({pike,
......
#!/usr/local/bin/pike #!/usr/local/bin/pike
/* $Id: test_pike.pike,v 1.39 2000/03/25 22:45:59 hubbe Exp $ */ /* $Id: test_pike.pike,v 1.40 2000/03/27 20:29:45 hubbe Exp $ */
import Stdio; import Stdio;
...@@ -27,7 +27,17 @@ int istty() ...@@ -27,7 +27,17 @@ int istty()
if(!istty_cache) if(!istty_cache)
{ {
istty_cache=!!Stdio.stdin->tcgetattr(); istty_cache=!!Stdio.stdin->tcgetattr();
if(!istty_cache) istty_cache=-1; if(!istty_cache)
{
istty_cache=-1;
}else{
switch(getenv("TERM"))
{
case "dumb":
case "emacs":
istty_cache=-1;
}
}
} }
return istty_cache>0; return istty_cache>0;
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment