Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gitlab
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
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
certo
gitlab
Commits
b1d8f09f
Commit
b1d8f09f
authored
Aug 12, 2021
by
Vladimir Bashkirtsev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Symlink duplicate gems to save space
parent
2bfe0ef2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
Makefile
Makefile
+11
-0
No files found.
Makefile
View file @
b1d8f09f
...
...
@@ -113,6 +113,17 @@ all: database-config resque-yml nginx-conf
rm
-rf
/usr/local/share/.yarnrc
/bin/sh
cleanup
gitlab
dev
doc
git
tests
cache
ports
man
patches
node_modules
windows
macos
bytecode
maps
packed_assets
root
=
/srv
;
\
folders
=(
`
find
$$
root
-name
gems
-type
d
`
)
;
\
dupes
=
`
find
$$
root
-name
gems
-type
d
-exec
ls
-1
'{}'
';'
|
sort
|
uniq
-d
`
;
\
origin
=
$
${
folders
[0]
}
;
\
for
gem
in
$$
dupes
;
do
\
for
folder
in
$
${
folders
[@]
:1
}
;
do
\
rm
-rf
$$
folder/
$$
gem
;
\
ln
-sv
$$
origin/
$$
gem
$$
folder/
$$
gem
;
\
done
;
\
done
rm
-rf
gitlab-home
umount
/tmp
rm
-rf
tmp
...
...
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