From 992eb51cf6bba540942a09e08a54c40fc210aab0 Mon Sep 17 00:00:00 2001 From: NatureFreshMilk Date: Fri, 23 Aug 2019 11:44:37 +0200 Subject: [PATCH] collect script --- app/.gitignore | 1 + app/collect_textures.sh | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 app/.gitignore create mode 100755 app/collect_textures.sh diff --git a/app/.gitignore b/app/.gitignore new file mode 100644 index 0000000..b1cd9d0 --- /dev/null +++ b/app/.gitignore @@ -0,0 +1 @@ +textures diff --git a/app/collect_textures.sh b/app/collect_textures.sh new file mode 100755 index 0000000..e599689 --- /dev/null +++ b/app/collect_textures.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +test -z "$1" &&{ + echo "$0 " + exit 1 +} + +mkdir -p textures + +find $1 -type f | grep -i png$ | xargs -i cp -v {} textures/ +