Browse files

add automatic base installers build

  • Loading branch information...
1 parent f08c7ef commit 775201d2eae4026cfc535f6aef517d8db6723525 Christophe Romain committed Jan 3, 2012
Showing with 21 additions and 1 deletion.
  1. +19 −0 functions/export/ceaninstallers
  2. +2 −1 pkg/cean/cean.build
View
19 functions/export/ceaninstallers
@@ -0,0 +1,19 @@
+# Description: Generate all CEAN installers
+# Author: Christophe Romain <cromain@process-one.net>
+# Depends:
+# Usage: export/ceaninstallers
+# vim: set foldmarker=#(,#) foldmethod=marker ts=4 sw=4 sts=4 et syntax=zsh:
+
+_api_check "export/ceaninstallers" $* || return $bad_use
+local arch
+
+# build CEAN base installers
+map package/fetch ibrowse cean
+for arch in $(/bin/ls -d pub/bin/*/${ERLANG_VERSION%[A-D]*} | cut -d/ -f3 | grep -v generic)
+do
+ package/build ibrowse $arch
+ package/install ibrowse $arch
+ package/build cean $arch
+ package/install cean $arch
+ export/installer cean $arch
+done
View
3 pkg/cean/cean.build
@@ -3,7 +3,8 @@ pkg_fetch() {
[ -d $(_pkg_sources) ] && {
_info "($pkg_name) updating local repository..."
(_pkg_cd_sources
- cp -r $HOME/.cean/lib/cean-${pkg_vsn}/* .
+ rsync -av --delete $HOME/.cean/lib/cean-${pkg_vsn}/* .
+ git add src/*
echo "VSN=$pkg_vsn" > vsn.mk
git status | grep -q modified && git commit -a -m "automatic update" || :)
} || {

0 comments on commit 775201d

Please sign in to comment.