]> granicus.if.org Git - clang/commitdiff
[scan-view] Rename 'Resources' --> 'share'
authorJonathan Roelofs <jonathan@codesourcery.com>
Fri, 13 Nov 2015 00:25:04 +0000 (00:25 +0000)
committerJonathan Roelofs <jonathan@codesourcery.com>
Fri, 13 Nov 2015 00:25:04 +0000 (00:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@252977 91177308-0d34-0410-b5e6-96231b3b80d8

tools/scan-view/CMakeLists.txt
tools/scan-view/Makefile
tools/scan-view/ScanView.py
tools/scan-view/share/FileRadar.scpt [moved from tools/scan-view/Resources/FileRadar.scpt with 100% similarity]
tools/scan-view/share/GetRadarVersion.scpt [moved from tools/scan-view/Resources/GetRadarVersion.scpt with 100% similarity]
tools/scan-view/share/bugcatcher.ico [moved from tools/scan-view/Resources/bugcatcher.ico with 100% similarity]

index fb0f26f7e443bab90b8d5a18fff84db44e5d8988..7de845a27472c159c6057b638f9d288027ce586d 100644 (file)
@@ -6,7 +6,7 @@ set(BinFiles
       scan-view
       startfile.py)
 
-set(ResourceFiles
+set(ShareFiles
       FileRadar.scpt
       GetRadarVersion.scpt
       bugcatcher.ico)
@@ -24,16 +24,16 @@ if(CLANG_INSTALL_SCANVIEW)
     install(PROGRAMS ${BinFile} DESTINATION bin)
   endforeach()
 
-  foreach(ResourceFile ${ResourceFiles})
-    add_custom_command(OUTPUT ${CMAKE_BINARY_DIR}/share/scan-view/${ResourceFile}
+  foreach(ShareFile ${ShareFiles})
+    add_custom_command(OUTPUT ${CMAKE_BINARY_DIR}/share/scan-view/${ShareFile}
                        COMMAND ${CMAKE_COMMAND} -E make_directory
                          ${CMAKE_BINARY_DIR}/share/scan-view
                        COMMAND ${CMAKE_COMMAND} -E copy
-                         ${CMAKE_CURRENT_SOURCE_DIR}/Resources/${ResourceFile}
+                         ${CMAKE_CURRENT_SOURCE_DIR}/share/${ShareFile}
                          ${CMAKE_BINARY_DIR}/share/scan-view/
-                       DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/Resources/${ResourceFile})
-    list(APPEND Depends ${CMAKE_BINARY_DIR}/share/scan-view/${ResourceFile})
-    install(FILES Resources/${ResourceFile} DESTINATION share/scan-view)
+                       DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/share/${ShareFile})
+    list(APPEND Depends ${CMAKE_BINARY_DIR}/share/scan-view/${ShareFile})
+    install(FILES Shares/${ShareFile} DESTINATION share/scan-view)
   endforeach()
 
   add_custom_target(scan-view ALL DEPENDS ${Depends})
index c2ca453cc98b1bd6792a6e2127cc26958195219a..2d4380cac3db8e6050d32f5070d1c13e23b1b660 100644 (file)
@@ -31,7 +31,7 @@ $(ToolDir)/%: % Makefile $(ToolDir)/.dir
        $(Verb)cp $< $@
        $(Verb)chmod +x $@
 
-$(ShareDir)/scan-view/%: Resources/% Makefile $(ShareDir)/scan-view/.dir
+$(ShareDir)/scan-view/%: share/% Makefile $(ShareDir)/scan-view/.dir
        $(Echo) "Copying $(notdir $<) to the 'share' directory..."
        $(Verb)cp $< $@
 
index 2336b090d96216b4684b91ccb5efa646b4c84432..7dc0351ebe7f56378697973180bf4a158675f711 100644 (file)
@@ -73,7 +73,7 @@ kReportReplacements.append((re.compile('<!-- REPORTSUMMARYEXTRA -->'),
 ###
 # Other simple parameters
 
-kResources = posixpath.join(posixpath.dirname(__file__), '../share/scan-view')
+kShare = posixpath.join(posixpath.dirname(__file__), '../share/scan-view')
 kConfigPath = os.path.expanduser('~/.scanview.cfg')
 
 ###
@@ -680,7 +680,7 @@ File Bug</h3>
                     overrides['Radar']['Component Version'] = 'X'
                     return self.send_report(None, overrides)
                 elif name=='favicon.ico':
-                    return self.send_path(posixpath.join(kResources,'bugcatcher.ico'))
+                    return self.send_path(posixpath.join(kShare,'bugcatcher.ico'))
         
         # Match directory entries.
         if components[-1] == '':