diff --git a/packages/generic/sea/Makefile.am b/packages/generic/sea/Makefile.am index 901910ac77..5335816918 100644 --- a/packages/generic/sea/Makefile.am +++ b/packages/generic/sea/Makefile.am @@ -4,12 +4,17 @@ EXTRA_DIST = make-sea.sh vers = \ @BOINC_MAJOR_VERSION@.@BOINC_MINOR_VERSION@.@BOINC_RELEASE@_@boinc_platform@ sea = boinc_$(vers).sh -tarfiles = BOINC/boinc BOINC/boincmgr BOINC/boinccmd BOINC/binstall.sh\ - BOINC/libboinc*.so* +tarfiles = BOINC/boinc BOINC/boincmgr BOINC/boinccmd BOINC/binstall.sh \ BOINC/boincmgr.16x16.png BOINC/boincmgr.32x32.png BOINC/boincmgr.48x48.png \ - BOINC/libcudart.so BOINC/ca-bundle.crt + BOINC/ca-bundle.crt -all: $(sea) $(top_builddir)/stage +if HAVE_CUDA_LIB +tarfiles += BOINC/libcudart.so +BOINC/libcudart.so: $(top_builddir)/coprocs/CUDA/posix/@boinc_platform@/libcudart.so BOINC + cp $(top_builddir)/coprocs/CUDA/posix/@boinc_platform@/libcudart.so BOINC/libcudart.so +endif + +all: $(top_builddir)/stage $(sea) # WARNING: WHAT FOLLOWS IS 'FRAGILE'. DO NOT REPLACE # TABS WITH SPACES! @@ -17,27 +22,22 @@ all: $(sea) $(top_builddir)/stage $(top_builddir)/stage: cd $(top_builddir) ; make stage +sea.tar: $(tarfiles) + ./make-tar.sh ${top_builddir} + $(sea): sea.tar make-sea.sh Makefile ./make-sea.sh sea.tar $(sea) BOINC/binstall.sh -sea.tar: $(tarfiles) - ./make-tar.sh -BOINC/boinc: $(top_builddir)/stage/$(bindir)/boinc BOINC +BOINC/boinc: $(top_builddir)/stage $(top_builddir)/stage/$(bindir)/boinc BOINC cp $(top_builddir)/stage/$(bindir)/boinc BOINC/boinc -BOINC/libboinc*.so*: - cp -P $(top_builddir)/stage/$(libdir)/libboinc*.so* BOINC - BOINC/boincmgr: $(top_builddir)/stage/$(bindir)/boincmgr BOINC cp $(top_builddir)/stage/$(bindir)/boincmgr BOINC/boincmgr BOINC/boinccmd: $(top_builddir)/stage/$(bindir)/boinccmd BOINC cp $(top_builddir)/stage/$(bindir)/boinccmd BOINC/boinccmd -BOINC/libcudart.so: $(top_builddir)/coprocs/CUDA/posix/@boinc_platform@/libcudart.so BOINC - cp $(top_builddir)/coprocs/CUDA/posix/@boinc_platform@/libcudart.so BOINC/libcudart.so - BOINC/boincmgr.16x16.png: boincmgr.16x16.png cp boincmgr.16x16.png BOINC/boincmgr.16x16.png BOINC/boincmgr.32x32.png: boincmgr.32x32.png diff --git a/packages/generic/sea/make-tar.sh b/packages/generic/sea/make-tar.sh index 87756d6fbd..3525e4d072 100755 --- a/packages/generic/sea/make-tar.sh +++ b/packages/generic/sea/make-tar.sh @@ -1,9 +1,16 @@ #!/bin/sh - -rm -fr BOINC/.CVS +destdir=`pwd` +cd $1 +srcdir=`pwd`/locale +cd $destdir +rm -rf `find BOINC -name ".CVS" -o -name ".svn"` mkdir BOINC mkdir BOINC/locale -find ../locale/client -name 'BOINC-Manager.mo' | cut -d '/' -f 4 | awk '{print "BOINC/locale/"$0}' | xargs mkdir -p -find ../locale/client -name 'BOINC-Manager.mo' | cut -d '/' -f 4,5 | awk '{print "cp \"../locale/"$0"\" \"BOINC/locale/"$0"\""}' | sh +for file in `find ${srcdir} -name 'BOINC-Manager.mo'` ; do + dir=`dirname $file` + locale=`basename $dir` + mkdir BOINC/locale/${locale} + cp -f $file BOINC/locale/${locale} +done tar cvf sea.tar BOINC - +exit 0