Created
January 13, 2016 03:35
-
-
Save nanpuyue/35747c9699e769740ac2 to your computer and use it in GitHub Desktop.
mklink for openwrt toolchain bin on cgywin/windows
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/sh | |
mkdir bin.bak | |
cp -f ./bin/* ./bin.bak/ | |
cd ./bin | |
pwd | |
for exe in *.exe | |
do | |
target="${exe%\.exe}" | |
ln -s "$exe" "$target".tmp | |
mv -vf "$target".tmp "$target" | |
done | |
cd ../ | |
cp -rvf ./bin.bak/* ./bin | |
echo "Done!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment