yes: Remove OpenB*OS version

* Was replaced by coreutils yes, and options are the same.
This commit is contained in:
Alexander von Gluck IV
2012-04-01 13:40:20 -05:00
parent f855eb69ed
commit 1e1a9ea40a
2 changed files with 0 additions and 52 deletions
-1
View File
@@ -105,7 +105,6 @@ StdBinCommands
version.cpp
waitfor.cpp
WindowShade.cpp
# yes.cpp
: be : $(haiku-utils_rsrc) ;
if $(TARGET_PLATFORM) = libbe_test {
-51
View File
@@ -1,51 +0,0 @@
// yes - for OpenBeOS
//
// authors, in order of contribution:
// [email protected]
//
#include <stdio.h>
#include <string.h>
#include <String.h>
void PrintUsageInfo (void);
int main(int32 argc, char **argv)
{
if (argc > 1) // possible --help
{
BString option = argv[1];
option.ToLower();
if (option == "--help")
{
PrintUsageInfo();
return (0);
}
}
while (1) // loop until interrupted
{
if (argc < 2) // no STRING
{
printf("y\n");
}
else // STRING(s)
{
for (int i = 1; i < argc; i++)
{
printf("%s ", argv[i]);
}
printf("\n");
}
}
return (0);
}
void PrintUsageInfo (void)
{
printf ("use: yes [STRING] ...\n"
"Repeatedly output a line with all specified STRING(s), or `y'.\n");
}