2016-04-20 00:53:07 +00:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
2017-06-20 06:41:02 +00:00
|
|
|
# Quick and dirty encryptor
|
2016-04-23 04:02:28 +00:00
|
|
|
# Copyright (C) 2016 Hamish Coleman
|
2016-04-20 00:53:07 +00:00
|
|
|
#
|
|
|
|
# TODO:
|
|
|
|
# - a tool that is portable to Windows
|
2017-06-15 10:24:36 +00:00
|
|
|
# - should output dependency information
|
2016-04-20 00:53:07 +00:00
|
|
|
|
|
|
|
INP="$1"
|
|
|
|
if [ -z "$INP" ]; then
|
|
|
|
echo Need input filename
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
shift
|
|
|
|
|
|
|
|
OUT="$1"
|
|
|
|
if [ -z "$OUT" ]; then
|
|
|
|
echo Need output filename
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
shift
|
|
|
|
|
2016-04-22 06:59:28 +00:00
|
|
|
set -x
|
|
|
|
|
2016-04-20 00:53:07 +00:00
|
|
|
cd mec-tools && ./mec_repack "../$INP" "../$OUT"
|
|
|
|
|