Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kumir2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
kumir
kumir2
Commits
8a285146
Commit
8a285146
authored
Oct 15, 2014
by
Victor Yacovlev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed legacy .svn* file ignore mask for resources copying
parent
acc54afb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
5 deletions
+1
-5
src/kumir2_library.cmake
src/kumir2_library.cmake
+0
-2
src/kumir2_plugin.cmake
src/kumir2_plugin.cmake
+1
-3
No files found.
src/kumir2_library.cmake
View file @
8a285146
...
...
@@ -48,11 +48,9 @@ macro(copyResources pluginDir)
set
(
SRC_RES
${
CMAKE_SOURCE_DIR
}
/share/kumir2/
${
pluginDir
}
/
)
file
(
GLOB_RECURSE resfiles RELATIVE
${
SRC_RES
}
${
SRC_RES
}
/*
)
foreach
(
res IN ITEMS
${
resfiles
}
)
if
(
NOT
${
res
}
MATCHES .svn*
)
get_filename_component
(
subdir
${
res
}
PATH
)
file
(
MAKE_DIRECTORY
${
SHARE_PATH
}
/
${
pluginDir
}
/
${
subdir
}
)
file
(
COPY
${
CMAKE_SOURCE_DIR
}
/share/kumir2/
${
pluginDir
}
/
${
res
}
DESTINATION
${
SHARE_PATH
}
/
${
pluginDir
}
/
${
subdir
}
)
install
(
FILES
${
SHARE_PATH
}
/
${
pluginDir
}
/
${
res
}
DESTINATION
${
RESOURCES_DIR
}
/
${
pluginDir
}
/
${
subdir
}
)
endif
()
endforeach
(
res
)
endmacro
(
copyResources
)
src/kumir2_plugin.cmake
View file @
8a285146
...
...
@@ -62,12 +62,10 @@ macro(copyResources pluginDir)
set
(
SRC_RES
${
CMAKE_SOURCE_DIR
}
/share/kumir2/
${
pluginDir
}
/
)
file
(
GLOB_RECURSE resfiles RELATIVE
${
SRC_RES
}
${
SRC_RES
}
/*
)
foreach
(
res IN ITEMS
${
resfiles
}
)
if
(
NOT
${
res
}
MATCHES .svn*
)
get_filename_component
(
subdir
${
res
}
PATH
)
file
(
MAKE_DIRECTORY
${
SHARE_PATH
}
/
${
pluginDir
}
/
${
subdir
}
)
file
(
COPY
${
CMAKE_SOURCE_DIR
}
/share/kumir2/
${
pluginDir
}
/
${
res
}
DESTINATION
${
SHARE_PATH
}
/
${
pluginDir
}
/
${
subdir
}
)
install
(
FILES
${
SHARE_PATH
}
/
${
pluginDir
}
/
${
res
}
DESTINATION
${
RESOURCES_DIR
}
/
${
pluginDir
}
/
${
subdir
}
)
endif
()
endforeach
(
res
)
endmacro
(
copyResources
)
...
...
@@ -75,7 +73,7 @@ macro(copyResourcesExcl pluginDir exclPattern)
set
(
SRC_RES
${
CMAKE_SOURCE_DIR
}
/share/kumir2/
${
pluginDir
}
/
)
file
(
GLOB_RECURSE resfiles RELATIVE
${
SRC_RES
}
${
SRC_RES
}
/*
)
foreach
(
res IN ITEMS
${
resfiles
}
)
if
(
(
NOT
${
res
}
MATCHES .svn*
)
AND
(
NOT
${
res
}
MATCHES
${
exclPattern
}
)
)
if
(
NOT
${
res
}
MATCHES
${
exclPattern
}
)
get_filename_component
(
subdir
${
res
}
PATH
)
file
(
MAKE_DIRECTORY
${
SHARE_PATH
}
/
${
pluginDir
}
/
${
subdir
}
)
file
(
COPY
${
CMAKE_SOURCE_DIR
}
/share/kumir2/
${
pluginDir
}
/
${
res
}
DESTINATION
${
SHARE_PATH
}
/
${
pluginDir
}
/
${
subdir
}
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment