Created
December 26, 2019 20:44
-
-
Save akeeton/84ee158e15727080c2d4508af4943ce2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -u | |
if [ "$#" -ne 2 ]; then | |
echo "Usage: $0 <input directory> <output directory>" | |
exit | |
fi | |
scriptdir="$(dirname "$0")" | |
indir=$(realpath "$1") | |
outdir=$(realpath "$2") | |
echo "Absolute script directory: '$scriptdir'" | |
echo "Absolute input directory: '$indir'" | |
echo "Absolute output directory: '$outdir'" | |
pushd "$scriptdir" | |
dotnet ./de4dot.dll -r "$indir" -ro "$outdir" -fpdb --dont-rename --preserve-tokens --preserve-table all,-pd --keep-types | |
popd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment