Created
September 7, 2017 12:07
-
-
Save hugot/c21e7012b79a0b262c8578ef2a993b56 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#! /usr/bin/env bash | |
# | |
# replaceslash.sh | |
# Copyright (C) 2017 hugo <hugo@supersudomachine> | |
# | |
# Distributed under terms of the MIT license. | |
# | |
[ -f NClass.build ] || ( | |
echo failed to find the build file, execute this script in the root of the NClass project && exit 1 | |
) | |
sed -i.bak -e '14 s/net/mono/' NClass.build | |
for i in $(find -iname *.resx); do | |
cp $i ${i}.bak | |
sed 's/\\/\//g' ${i}.bak > ${i}.new || ( | |
echo failed slash substitution in $i && exit 1 | |
) | |
sed 's/PNG/png/g' ${i}.new > ${i} || ( | |
echo failed to substitute PNG with png in $i && exit 1 | |
) | |
rm -rf ${i}.new | |
done | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment