1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-03-15 07:29:15 +01:00

OP-305: remove r/o attributes from copied .svn/* files (share.pro)

Those files are copied to make built GCS self-contained, but share.pro also
copies hidden and r/o SVN files. With them on Windows cp -rp can't copy over
old build, and rm -rf can't remove them.


git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2928 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
osnwt 2011-03-01 22:23:12 +00:00 committed by osnwt
parent beedb7fdad
commit 52643dd6c6

View File

@ -8,8 +8,14 @@ DATACOLLECTIONS = dials models pfd sounds diagrams mapicons
equals(copydata, 1) {
for(dir, DATACOLLECTIONS) {
exists($$GCS_SOURCE_TREE/share/openpilotgcs/$$dir) {
# remove r/o and hidden attributes from .svn/* files from old build: they prevent copy over with cp -rp
win32:data_copy.commands += -@attrib -R -S -H $$targetPath(\"$$GCS_DATA_PATH/$$dir/*\") /S /D >nul 2>&1 $$addNewline()
macx:data_copy.commands += $(COPY_DIR) $$targetPath(\"$$GCS_SOURCE_TREE/share/openpilotgcs/$$dir\") $$targetPath(\"$$GCS_DATA_PATH/\") $$addNewline()
!macx:data_copy.commands += $(COPY_DIR) $$targetPath(\"$$GCS_SOURCE_TREE/share/openpilotgcs/$$dir\") $$targetPath(\"$$GCS_DATA_PATH/$$dir\") $$addNewline()
# remove r/o and hidden attributes from .svn/* files: they prevent cleaning with rm -rf
win32:data_copy.commands += attrib -R -S -H $$targetPath(\"$$GCS_DATA_PATH/$$dir/*\") /S /D $$addNewline()
}
}