diff options
Diffstat (limited to 'enumerate')
-rw-r--r-- | enumerate/Readme | 1 | ||||
-rw-r--r-- | enumerate/enumerate.cc | 26 |
2 files changed, 0 insertions, 27 deletions
diff --git a/enumerate/Readme b/enumerate/Readme deleted file mode 100644 index 2e0649f9..00000000 --- a/enumerate/Readme +++ /dev/null @@ -1 +0,0 @@ -Tool used in Mu's build process. diff --git a/enumerate/enumerate.cc b/enumerate/enumerate.cc deleted file mode 100644 index 2777c407..00000000 --- a/enumerate/enumerate.cc +++ /dev/null @@ -1,26 +0,0 @@ -#include<assert.h> -#include<cstdlib> -#include<dirent.h> -#include<vector> -using std::vector; -#include<string> -using std::string; -#include<iostream> -using std::cout; - -int main(int argc, const char* argv[]) { - assert(argc == 3); - assert(string(argv[1]) == "--until"); - string last_file(argv[2]); - - dirent** files; - int num_files = scandir(".", &files, NULL, alphasort); - for (int i = 0; i < num_files; ++i) { - string curr_file = files[i]->d_name; - if (!isdigit(curr_file.at(0))) continue; - if (!last_file.empty() && curr_file > last_file) break; - cout << curr_file << '\n'; - } - // don't bother freeing files - return 0; -} |