Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Pmodules
buildblocks
Commits
1aa03ce3
Commit
1aa03ce3
authored
May 21, 2015
by
gsell
Browse files
scripts/Bootstrap/Pmodules/modmanage.in:
- in function sync_modules(): do not sync module template files
parent
86651079
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
scripts/Bootstrap/Pmodules/modmanage.in
scripts/Bootstrap/Pmodules/modmanage.in
+9
-9
No files found.
scripts/Bootstrap/Pmodules/modmanage.in
View file @
1aa03ce3
...
...
@@ -163,15 +163,15 @@ sync_module() {
fi
# if modulefile is a sym-link, sync link target file
if
[[
-L
"
${
src_modulefile
}
"
]]
;
then
local
canonical_fname
=
$(
readlink
-f
"
${
src_modulefile
}
"
)
local
src_template
=
$(
dirname
"
${
canonical_fname
}
"
)
local
modulename
=
$(
basename
"
${
src_template
}
"
)
local
target_template
=
"
${
target_prefix
}
/
${
PSI_TEMPLATES_DIR
}
/
${
modulename
}
"
$DRY
rsync
--links
--perms
--recursive
--delete
\
"
${
src_template
}
/"
\
"
${
target_template
}
"
fi
#
if [[ -L "${src_modulefile}" ]]; then
#
local canonical_fname=$(readlink -f "${src_modulefile}")
#
local src_template=$(dirname "${canonical_fname}")
#
local modulename=$(basename "${src_template}")
#
local target_template="${target_prefix}/${PSI_TEMPLATES_DIR}/${modulename}"
#
$DRY rsync --links --perms --recursive --delete \
#
"${src_template}/" \
#
"${target_template}"
#
fi
}
#
...
...
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