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.

createUpdate.sh 1010B

123456789101112131415161718192021222324252627282930313233
  1. #!/bin/sh
  2. # This script generates the launcher updates
  3. LAUNCHERDIR="/home/dmdirc/google/launcher"
  4. LAUNCHERUPDATEDIR="/home/dmdirc/www/updates/launchers/"
  5. UNIXVERSION=`cat ${LAUNCHERDIR}/unix/DMDirc.sh | grep LAUNCHERVERSION= | awk -F\" '{print $2}'`
  6. WINDOWSVERSION=`cat ${LAUNCHERDIR}/windows/DMDirc.dpr | grep "launcherVersion: String =" | awk -F\' '{print $2}'`
  7. if [ ! -e "${LAUNCHERUPDATEDIR}/unix-${UNIXVERSION}.sh" ]; then
  8. echo "Creating Launcher Update: unix-${UNIXVERSION}";
  9. cp -${LAUNCHERDIR}/unix/DMDirc.sh ${LAUNCHERUPDATEDIR}/unix-${UNIXVERSION}.sh
  10. fi;
  11. if [ ! -e "${LAUNCHERUPDATEDIR}/windows-${WINDOWSVERSION}.zip" ]; then
  12. echo "Creating Launcher Update: windows-${WINDOWSVERSION}";
  13. OLDDIR=${PWD}
  14. cd ${LAUNCHERDIR}/windows
  15. sh compile.sh
  16. # Create symlinks
  17. for exe in `ls *.exe`; do
  18. ln -s ${exe} .${exe}
  19. done;
  20. # Create Zip File
  21. zip -9 ${LAUNCHERUPDATEDIR}/windows-${WINDOWSVERSION}.zip .*.exe
  22. # Remove temp exes
  23. for exe in `ls .*.exe`; do
  24. rm -Rf ${exe}
  25. done;
  26. cd ${OLDDIR}
  27. fi;