[packages/gitlab-ce] move files cleanup to script
glen
glen at pld-linux.org
Sun Aug 21 00:24:19 CEST 2016
commit 3e64c7b8b161849ff8e56550579a5540c4db4539
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sun Aug 21 01:05:55 2016 +0300
move files cleanup to script
clean-vendor.sh | 33 +++++++++++++++++++++++++++++++--
gitlab-ce.spec | 25 +------------------------
2 files changed, 32 insertions(+), 26 deletions(-)
---
diff --git a/gitlab-ce.spec b/gitlab-ce.spec
index 56f8330..a82cd6f 100644
--- a/gitlab-ce.spec
+++ b/gitlab-ce.spec
@@ -17,7 +17,7 @@
Summary: A Web interface to create projects and repositories, manage access and do code reviews
Name: gitlab-ce
Version: 8.10.7
-Release: 0.52
+Release: 0.53
License: MIT
Group: Applications/WWW
# md5 deliberately omitted until this package is useful
@@ -99,29 +99,6 @@ mv config/unicorn.rb.example config/unicorn.rb
mv config/database.yml.mysql config/database.yml
find -name .gitkeep | xargs rm
-rm -r .github
-rm -r docker
-rm -r features
-rm -r lib/support/{deploy,init.d}
-rm -r rubocop
-rm -r scripts
-rm -r spec
-rm .csscomb.json
-rm .flayignore
-rm .foreman
-rm .gitattributes
-rm .gitignore
-rm .gitlab-ci.yml
-rm .pkgr.yml
-rm .rspec
-rm .rubocop.yml
-rm .rubocop_todo.yml
-rm .scss-lint.yml
-rm .simplecov
-rm .vagrant_enabled
-rm Procfile
-rm bin/pkgr_before_precompile.sh
-rm docker-compose.yml
%build
%if %{with gem_cache}
diff --git a/clean-vendor.sh b/clean-vendor.sh
index 4fbeaae..549da05 100755
--- a/clean-vendor.sh
+++ b/clean-vendor.sh
@@ -1,8 +1,36 @@
#!/bin/sh
set -e
+# clean files not related for running gitlab
+clean_rootfiles() {
+ cd $root
+ rm -r .github
+ rm -r docker
+ rm -r features
+ rm -r lib/support/{deploy,init.d}
+ rm -r rubocop
+ rm -r scripts
+ rm -r spec
+ rm .csscomb.json
+ rm .flayignore
+ rm .foreman
+ rm .gitattributes
+ rm .gitignore
+ rm .gitlab-ci.yml
+ rm .pkgr.yml
+ rm .rspec
+ rm .rubocop.yml
+ rm .rubocop_todo.yml
+ rm .scss-lint.yml
+ rm .simplecov
+ rm .vagrant_enabled
+ rm Procfile
+ rm bin/pkgr_before_precompile.sh
+ rm docker-compose.yml
+}
+
clean_rubygems() {
- cd $vendordir/vendor/bundle/ruby
+ cd $root/vendor/bundle/ruby
# cleanup gem work files
# the files are not needed at runtime
@@ -59,6 +87,7 @@ clean_rubygems() {
rm -rfv gems/rugged-*/vendor
}
-vendordir=$1
+root=$1
+clean_rootfiles
clean_rubygems
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/gitlab-ce.git/commitdiff/3e64c7b8b161849ff8e56550579a5540c4db4539
More information about the pld-cvs-commit
mailing list