From 1e1a9ea40a9f206cb8763469d057fe95061e1f1c Mon Sep 17 00:00:00 2001 From: Alexander von Gluck IV Date: Sun, 1 Apr 2012 13:11:16 -0500 Subject: [PATCH] yes: Remove OpenB*OS version * Was replaced by coreutils yes, and options are the same. --- src/bin/Jamfile | 1 - src/bin/yes.cpp | 51 ------------------------------------------------- 2 files changed, 52 deletions(-) delete mode 100644 src/bin/yes.cpp diff --git a/src/bin/Jamfile b/src/bin/Jamfile index 9b32aacbe0..2afbfe7b68 100644 --- a/src/bin/Jamfile +++ b/src/bin/Jamfile @@ -105,7 +105,6 @@ StdBinCommands version.cpp waitfor.cpp WindowShade.cpp -# yes.cpp : be : $(haiku-utils_rsrc) ; if $(TARGET_PLATFORM) = libbe_test { diff --git a/src/bin/yes.cpp b/src/bin/yes.cpp deleted file mode 100644 index e937baecd3..0000000000 --- a/src/bin/yes.cpp +++ /dev/null @@ -1,51 +0,0 @@ -// yes - for OpenBeOS -// -// authors, in order of contribution: -// jonas.sundstrom@kirilla.com -// - -#include -#include -#include - -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"); -} -