#-------------------------------------------------------------------------------------------------- # Standard modularization template # -------------------------------- # # The script will start execution from . # # Available variables: # $qtdir = or where you started the modularize script from # $basepath = path for the modularize script, and basepath for the modularization repo # $OStype = where is one of 0 = Windows, 1 = Unix, 2 = Mac # # To execute a command: # run("git mv foo bar") # runs command, reports error possition and dies # runNotDie("git mv foo bar") # runs command, reports error possition, returns error code # and continues. Use ($? >> 8) to get the real exit code. # ensureDir("qtbase") # Ensures that qtbase exists and is a directory. Will create # it if it does not exist. #-------------------------------------------------------------------------------------------------- ensureDir("qtphonon/src/plugins"); run("git mv src/phonon qtphonon/src/phonon"); run("git mv qtbase/src/plugins/phonon qtphonon/src/plugins/phonon"); ensureDir("qtphonon/src/3rdparty"); run("git mv src/3rdparty/phonon qtphonon/src/3rdparty"); return 1;