Advertisement
kotoroshinoto

link TFC source to forge source

Aug 23rd, 2013
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.00 KB | None | 0 0
  1. #!/bin/bash
  2. TFC_ECLIPSEDIR="../TFC/mcp/src/minecraft"
  3. THISDIR=`pwd -P`#this script expects to be in the directory above the TFC source (a sibling of TFCraft)
  4. rm -rf ./links
  5. rm -rf $TFC_ECLIPSEDIR/TFC
  6. #remove dead links
  7. for i in $(file $TFC_ECLIPSEDIR/* | grep broken | cut -d : -f 1); do rm $i; done
  8. #remove TFC directory used to merge links
  9. mkdir -p $TFC_ECLIPSEDIR/TFC
  10. mkdir -p ./links
  11. ln -s $THISDIR/TFCraft/TFC\ API/TFC ./links/API
  12. ln -s $THISDIR/TFCraft/TFC_Shared/src/TFC ./links/SHARED
  13. ln -s $THISDIR/TFCraft/TFC\ Asm ./links/ASM
  14. ln -s $THISDIR/TFCraft/TFC\ Resources/assets ./links/assets
  15.  
  16. #link assets
  17. ln -s $THISDIR/links/assets $TFC_ECLIPSEDIR/
  18.  
  19. #link the files in the API and Shared directories to the target TFC directory
  20. for f in $THISDIR/links/API/*
  21. do
  22.     ln -s $f $TFC_ECLIPSEDIR/TFC/
  23. done
  24. for f in $THISDIR/links/SHARED/*
  25. do
  26.     ln -s $f $TFC_ECLIPSEDIR/TFC/
  27. done
  28.  
  29. #link the files in  ASM to the target TFC directory
  30. for f in $THISDIR/links/ASM/*
  31. do
  32.     ln -s $f $TFC_ECLIPSEDIR/
  33. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement