diff options
author | Aki <please@ignore.pl> | 2024-02-18 19:55:27 +0100 |
---|---|---|
committer | Aki <please@ignore.pl> | 2024-02-18 19:55:27 +0100 |
commit | 08f94f8cd03b85274853ba82f3bbe03abd13e1a6 (patch) | |
tree | 0ca5c3e47355f64ad1c288208ba3b6f3b79ca7ad /data | |
parent | 4e6e71985cfce141b2639a3eb9b2cff7fac7f5a4 (diff) | |
download | starshatter-08f94f8cd03b85274853ba82f3bbe03abd13e1a6.zip starshatter-08f94f8cd03b85274853ba82f3bbe03abd13e1a6.tar.gz starshatter-08f94f8cd03b85274853ba82f3bbe03abd13e1a6.tar.bz2 |
Use diff -rNu or similar instead
Diffstat (limited to 'data')
-rwxr-xr-x | data/compare.sh | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/data/compare.sh b/data/compare.sh deleted file mode 100755 index 4c3958c..0000000 --- a/data/compare.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/sh -# Run to compare all files from one pack to equivalent files from the other pack. For example: -# -# $ ./compare.sh content -# -# Compares all files in 'content/' pack to equivalent files in 'shatter/' (default second argument). - -test -z "$1" && { echo "missing directory path argument" >&2; exit 1; } -test -d "$1" || { echo "not a directory: $1" >&2; exit 1; } -left=$1 -right=${2:-shatter} -for file in $(find $left/* -type f); do - file=${file#*/} - echo -e "\e[1mdiff $left/$file $right/$file\e[0m" - echo -e "\e[1m<<< $left/$file\e[0m" - if test -f "$right/$file"; then - echo -e "\e[1m>>> $right/$file\e[0m" - if diff --color=always $left/$file $right/$file; then - echo Files are the same - fi - else - echo -e "\e[1m>>> /dev/null\e[0m" - fi - echo -done
\ No newline at end of file |