maketype 861 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #!/bin/sh
  2. cd $PWD
  3. if test ! -f stamp.$1
  4. then
  5. cfiles="`find src -name \*.c`"
  6. cfiles="`grep -l \"def [H|L][U|E][B|A]\" $cfiles` src/md5/md5c.c"
  7. for s in $cfiles
  8. do
  9. bleh="`echo $s | cut -d / -f 2`";
  10. if [ $bleh = "mod" ]; then
  11. #echo "src/mod/irc.mod/cmdsirc.c" | cut -d / -f 3
  12. #elif [ $1 = "binary" ]; then
  13. mod="`echo $s | cut -d / -f 3`";
  14. os="`echo src/mod/$mod | sed s/\\\.mod/\\\.o/g`";
  15. echo "deleting $os"
  16. rm -f $os
  17. # fi
  18. else
  19. os="`echo $s | sed s/\\\.c/\\\.o/g`";
  20. if test -f $os
  21. then
  22. if test "`file $os | grep ELF`"
  23. then
  24. echo "Deleting $os"
  25. rm -f $os
  26. else
  27. if test "`file $os | grep object`"
  28. then
  29. echo "Deleting $os"
  30. rm -f $os
  31. fi
  32. fi
  33. fi
  34. fi
  35. done
  36. fi
  37. rm -f stamp.*
  38. touch stamp.$1