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.

compile.sh 805B

1234567891011121314151617181920212223242526272829
  1. #!/bin/sh
  2. rm UAC.manifest UAC.rc
  3. if [ ! -e ../../installer/windows/UAC.rc ]; then
  4. echo "1 24 \"UAC.manifest\"" > UAC.rc
  5. cp ../../installer/windows/UAC.manifest .
  6. else
  7. cp ../../installer/windows/UAC.manifest ../../installer/windows/UAC.rc .
  8. fi;
  9. if [ ! -e ./icon.ico ]; then
  10. ln -sf "../../src/com/dmdirc/res/icon.ico" ./icon.ico
  11. fi
  12. rm -Rf ./*.exe
  13. PWDIR="${PWD}"
  14. # Windows binaries need real paths not cygwin-y pathhs.
  15. if [ "${WINDIR}" != "" ]; then
  16. PWDIR=`echo "${PWDIR}" | sed 's#^/c/#c:/#'`
  17. fi;
  18. compilerFlags="-Xs -XX -O2 -Or -Op1"
  19. extraFlags="-Fu${PWDIR}/../../libwin"
  20. fpc -Sd -Twin32 ${compilerFlags} ${extraFlags} DMDirc.dpr
  21. fpc -Sd -Twin32 ${compilerFlags} ${extraFlags} DMDircUpdater.dpr
  22. rm -Rf ./*.o ./*.or ./*.ppu
  23. if [ -e DMDircUpdater.exe -a -e DMDirc.exe ]; then
  24. exit 0;
  25. else
  26. exit 1;
  27. fi