Revision 73f91e0bfc7ca7c8ec65357600becb1cdd80fc10 authored by bernatx on 10 January 2020, 16:37:59 UTC, committed by bernat on 15 January 2020, 14:12:34 UTC
1 parent f3022b9
ImportAssets.sh
#! /bin/bash
# ==============================================================================
# -- Parse arguments -----------------------------------------------------------
# ==============================================================================
DOC_STRING="Unpack and copy over CarlaUE4's Exported Assets"
USAGE_STRING="Usage: $0 [-h|--help] [-d|--dir] <outdir>"
OUTPUT_DIRECTORY=""
OPTS=`getopt -o h,d:: --long help,dir:: -n 'parse-options' -- "$@"`
if [ $? != 0 ] ; then echo "$USAGE_STRING" ; exit 2; fi
eval set -- "$OPTS"
while true; do
case "$1" in
--dir )
OUTPUT_DIRECTORY="$2"
shift ;;
-h | --help )
echo "$DOC_STRING"
echo "$USAGE_STRING"
exit 1
;;
* )
break ;;
esac
done
#Tar.gz the stuff
for filepath in `find Import/ -type f -name "*.tar.gz"`; do
tar --keep-newer-files -xvf ${filepath}
done
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...