Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- TFC_ECLIPSEDIR="../TFC/mcp/src/minecraft"
- THISDIR=`pwd -P`#this script expects to be in the directory above the TFC source (a sibling of TFCraft)
- rm -rf ./links
- rm -rf $TFC_ECLIPSEDIR/TFC
- #remove dead links
- for i in $(file $TFC_ECLIPSEDIR/* | grep broken | cut -d : -f 1); do rm $i; done
- #remove TFC directory used to merge links
- mkdir -p $TFC_ECLIPSEDIR/TFC
- mkdir -p ./links
- ln -s $THISDIR/TFCraft/TFC\ API/TFC ./links/API
- ln -s $THISDIR/TFCraft/TFC_Shared/src/TFC ./links/SHARED
- ln -s $THISDIR/TFCraft/TFC\ Asm ./links/ASM
- ln -s $THISDIR/TFCraft/TFC\ Resources/assets ./links/assets
- #link assets
- ln -s $THISDIR/links/assets $TFC_ECLIPSEDIR/
- #link the files in the API and Shared directories to the target TFC directory
- for f in $THISDIR/links/API/*
- do
- ln -s $f $TFC_ECLIPSEDIR/TFC/
- done
- for f in $THISDIR/links/SHARED/*
- do
- ln -s $f $TFC_ECLIPSEDIR/TFC/
- done
- #link the files in ASM to the target TFC directory
- for f in $THISDIR/links/ASM/*
- do
- ln -s $f $TFC_ECLIPSEDIR/
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement