From f8e2755c97a0c0eb550feb2010bd54ec48b2436f Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Sat, 14 Aug 2021 09:24:33 +0200 Subject: [PATCH] change: update readme with build option --- readme.md | 37 +++++++++++++++++++++++-------------- 1 file changed, 23 insertions(+), 14 deletions(-) diff --git a/readme.md b/readme.md index 447d846..4ec7f7b 100644 --- a/readme.md +++ b/readme.md @@ -2,36 +2,45 @@ ## Description -Discspan split a text file with data source pathes. Each output file contains -the pathes on one media. The output file is calculate best use space on media. -Files to big for a media is in file with number zero. +Discspan split a text file with data source pathes. Each output file contains +the pathes on one media. The output file is calculate best use space on media. +Files to big for a media is in output file with number zero. ## Installation +```bash mkdir build cd build + cmake .. + make make install +``` -## Example to use - -1. Create a data file list: - - find /pfad/zur/den/Dateien -type f > testfile +## Options -2. Execute discspan to split files on single layer DVD +Example: +> cmake -DBUILD_SHARED_LIBS=OFF .. - discspan -i testfile -o medium -5 +BUILD_SHARED_LIBS +> Build a shared library default is ON -3. Copy files from text file into seperated folder +## Example to use - rsync -av --files-from=medium / /pfad/zum/wegkopieren/ +```bash - or +# 1. Create a data file list: +find /pfad/zur/den/Dateien -type f > testfile - cat medium | xargs -i cp -rl --parents {} /pfad/zum/wegkopieren +# 2. Execute discspan to split files on single layer DVD +discspan -i testfile -o medium -5 +# 3. Copy files from text file into seperated folder +rsync -av --files-from=medium / /pfad/zum/wegkopieren/ +# or +cat medium | xargs -i cp -rl --parents {} /pfad/zum/wegkopieren +``` ## Licence -- 2.39.5