You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

prePackage.sh 599B

12345678910111213141516171819202122
  1. #!/bin/sh
  2. # Check if there have been any changes to these files from the svn version
  3. CHANGES=`svn status | grep -v ?`
  4. compile() {
  5. # Is there any changes to this file?
  6. THISCHANGES=`echo ${CHANGES} | grep ${1}`
  7. # Compile if the output doesn't exist, or the local version differs from GIT
  8. if [ ! -e ${2} -o "" != "${THISCHANGES}" ]; then
  9. echo " Compiling: ${1} -> ${2}"
  10. fpc -Sd -Twin32 ${1} >/dev/null 2>&1
  11. if [ $? -ne 0 ]; then
  12. echo " Failed"
  13. fi;
  14. rm -Rf *.o
  15. fi;
  16. }
  17. compile "itunes.dpr" "itunes.dll"
  18. compile "winamp.dpr" "winamp.dll"
  19. compile "GetMediaInfo.dpr" "GetMediaInfo.exe"