From 65a5551059e30a8d5072356eafaf9b31cc63980a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Toni=20R=C3=B6nkk=C3=B6?= Date: Mon, 18 Sep 2017 20:59:17 +0300 Subject: [PATCH] Removed a dead link Old versions of the project are no longer available at softagalleria.net --- README.md | 50 ++++++++++++++++++++++++++++++++------------------ 1 file changed, 32 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index cdfeb32..8f6da0d 100644 --- a/README.md +++ b/README.md @@ -7,12 +7,10 @@ provides Linux compatible Dirent interface for Microsoft Windows. # Installation Download the latest Dirent installation package from -[GitHub](https://github.com/tronkko/dirent/releases). -Older versions can be found at -[softagalleria.net](http://softagalleria.net/download/dirent/?C=M;O=D). - -Unpack the installation file with 7-zip, for example. The installation -package contains dirent.h file as well as a few example programs. +[GitHub](https://github.com/tronkko/dirent/releases) and +unpack the installation file with 7-zip, for example. The installation +package contains dirent.h file as well as a few example programs and +tests. ## Install Dirent for All Programs @@ -38,27 +36,43 @@ dirent.h on Linux/UNIX while substituting the functionality on Microsoft Windows. -## Building Example Programs +## Examples + +The installation package contains four example programs: + +Program | Purpose +-------- | ----------------------------------------------------------------- +ls | List files in a directory, e.g. ls "c:\Program Files" +find | Find files in subdirectories, e.g. find "c:\Program Files\CMake" +updatedb | Build database of files in a drive, e.g. updatedb c:\ +locate | Locate a file from database, e.g. locate notepad.exe -The installation package contains some example programs and tests under -the directories examples and tests. To run these programs, install -[CMake](https://cmake.org/). +To build the example programs, install [CMake](https://cmake.org/). +Then, open command prompt and create a build directory as + +``` +c:\ +mkdir temp +mkdir temp\dirent +cd temp\dirent +``` -Open command prompt, navigate to dirent directory with cd and generate -build files as +Generate build files as ``` cmake . ``` -Load the generated dirent.sln file into Visual Studio and build the -solution. Run the example programs from command prompt as +Open Visual Studio, load the generated dirent.sln file from the build +directory and build the solution. Once ready, you can run the example +programs from the command prompt as ``` -Debug\updatedb c:\ -Debug\locate cmd.exe -Debug\ls . -Debug\find . +cd Debug +ls . +find . +updatedb c:\ +locate cmd.exe ```