Server starts OK.
This commit is contained in:
parent
9f21b9383d
commit
995dc4ee6a
3 changed files with 31 additions and 12 deletions
|
|
@ -65,16 +65,12 @@ pushd bundle/ruby/1.8/
|
||||||
|
|
||||||
chmod 755 gems/thin-1.2.7/example/async_chat.ru
|
chmod 755 gems/thin-1.2.7/example/async_chat.ru
|
||||||
chmod 755 gems/thin-1.2.7/example/async_tailer.ru
|
chmod 755 gems/thin-1.2.7/example/async_tailer.ru
|
||||||
#chmod 644 master/public/stylesheets/brandongrotesque_light/demo.html
|
|
||||||
chmod 644 gems/i18n-0.4.1/MIT-LICENSE
|
chmod 644 gems/i18n-0.4.1/MIT-LICENSE
|
||||||
chmod 755 gems/abstract-1.0.0/abstract.gemspec
|
chmod 755 gems/abstract-1.0.0/abstract.gemspec
|
||||||
chmod 644 gems/mini_magick-2.1/MIT-LICENSE
|
chmod 644 gems/mini_magick-2.1/MIT-LICENSE
|
||||||
#chmod 644 master/public/stylesheets/brandongrotesque_light/Brandon_light-webfont.svg
|
|
||||||
chmod 755 gems/thin-1.2.7/lib/thin/controllers/service.sh.erb
|
chmod 755 gems/thin-1.2.7/lib/thin/controllers/service.sh.erb
|
||||||
chmod 644 gems/treetop-1.4.8/spec/compiler/test_grammar.tt
|
chmod 644 gems/treetop-1.4.8/spec/compiler/test_grammar.tt
|
||||||
|
|
||||||
#sed -i -e "s|\r||" master/public/javascripts/jquery.cycle/src/jquery.cycle.lite.js
|
|
||||||
#sed -i -e "s|\r||" master/public/javascripts/fancybox/jquery.fancybox-1.3.1.js
|
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,9 @@ Source: %{name}-%{version}-%{git_release}.tar.gz
|
||||||
Source1: diaspora-ws
|
Source1: diaspora-ws
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
|
# See http://github.com/diaspora/diaspora/issues/issue/393
|
||||||
|
Patch0: source-fix.patch
|
||||||
|
|
||||||
BuildRequires: git
|
BuildRequires: git
|
||||||
|
|
||||||
Requires(pre): shadow-utils
|
Requires(pre): shadow-utils
|
||||||
|
|
@ -44,9 +47,13 @@ exit 0
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{version}-%{git_release}
|
%setup -q -n %{name}-%{version}-%{git_release}
|
||||||
|
pushd master
|
||||||
|
%patch0 -p1
|
||||||
|
popd
|
||||||
|
|
||||||
mkdir diaspora/tmp || :
|
|
||||||
find . -name .git | xargs rm -rf || :
|
mkdir master/tmp || :
|
||||||
|
#find . -name .git | xargs rm -rf || :
|
||||||
find . -type f -exec \
|
find . -type f -exec \
|
||||||
sed -i 's|^#!/usr/local/bin/ruby|#!/usr/bin/ruby|' {} \; > /dev/null
|
sed -i 's|^#!/usr/local/bin/ruby|#!/usr/bin/ruby|' {} \; > /dev/null
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -143,7 +143,8 @@ function make_dist
|
||||||
cp diaspora.logconf dist/${RELEASE_DIR}
|
cp diaspora.logconf dist/${RELEASE_DIR}
|
||||||
cd dist
|
cd dist
|
||||||
mkdir ${RELEASE_DIR}/master
|
mkdir ${RELEASE_DIR}/master
|
||||||
cp -ar diaspora/* diaspora/.gitignore ${RELEASE_DIR}/master
|
cp -ar diaspora/* diaspora/.git* ${RELEASE_DIR}/master
|
||||||
|
cp -r ../.bundle ${RELEASE_DIR}/master
|
||||||
mv ${RELEASE_DIR}/master/diaspora.spec ${RELEASE_DIR}
|
mv ${RELEASE_DIR}/master/diaspora.spec ${RELEASE_DIR}
|
||||||
tar czf ${RELEASE_DIR}.tar.gz ${RELEASE_DIR} && rm -rf ${RELEASE_DIR}
|
tar czf ${RELEASE_DIR}.tar.gz ${RELEASE_DIR} && rm -rf ${RELEASE_DIR}
|
||||||
}
|
}
|
||||||
|
|
@ -172,9 +173,22 @@ function make_bundle()
|
||||||
cd dist
|
cd dist
|
||||||
rm -rf $bundle_name
|
rm -rf $bundle_name
|
||||||
mkdir -p $bundle_name/bundle
|
mkdir -p $bundle_name/bundle
|
||||||
pushd diaspora
|
pushd diaspora > /dev/null
|
||||||
bundle install --deployment --path="../$bundle_name/bundle" --without=test rdoc
|
set -x
|
||||||
cp AUTHORS Gemfile GNU-AGPL-3.0 COPYRIGHT "../$bundle_name"
|
rm -rf devise.tmp
|
||||||
|
git clone http://github.com/BadMinus/devise.git devise.tmp
|
||||||
|
( cd devise.tmp; gem build devise.gemspec)
|
||||||
|
gem install --install-dir "../$bundle_name/bundle/ruby/1.8" \
|
||||||
|
--no-rdoc --no-ri \
|
||||||
|
--ignore-dependencies \
|
||||||
|
devise.tmp/devise-1.1.rc1.gem &&
|
||||||
|
rm -rf devise.tmp
|
||||||
|
|
||||||
|
bundle install --deployment \
|
||||||
|
--path="../$bundle_name/bundle" \
|
||||||
|
--without=test rdoc
|
||||||
|
|
||||||
|
cp AUTHORS Gemfile GNU-AGPL-3.0 COPYRIGHT "../$bundle_name"
|
||||||
popd
|
popd
|
||||||
tar czf $bundle_name.tar.gz $bundle_name
|
tar czf $bundle_name.tar.gz $bundle_name
|
||||||
}
|
}
|
||||||
|
|
@ -211,11 +225,13 @@ function make_links()
|
||||||
function usage()
|
function usage()
|
||||||
{
|
{
|
||||||
cat <<- EOF
|
cat <<- EOF
|
||||||
Usage: make_dist [-c commit] <dist|bundle|fix_gemlock>
|
|
||||||
|
Usage: make_dist [-c commit] <dist|bundle|links>
|
||||||
|
|
||||||
-c Use a given commit, defaults to last checked in.
|
-c Use a given commit, defaults to last checked in.
|
||||||
dist Build a diaspora application tarball.
|
dist Build a diaspora application tarball.
|
||||||
bundle Build a bundler(1) bundle for diaspora.
|
bundle Build a bundler(1) bundle for diaspora.
|
||||||
fix_gemlock Try to fix out-of order gemlock, VERY INTRUSIVE.
|
links Symlink bundle and source tarballs to rpm sourde dir.
|
||||||
|
|
||||||
All results are stored in dist/
|
All results are stored in dist/
|
||||||
EOF
|
EOF
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue