Projects
Kolab:16:Testing
roundcubemail-selfcontained
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 36
View file
buildroundcubemailtarball.sh
Changed
@@ -241,6 +241,10 @@ -d roundcubemail-skin-elastic && rm -rf roundcubemail-skin-elastic git clone --branch master ssh://git@git.kolab.org/source/roundcubemail-skin-elastic.git roundcubemail-skin-elastic +if -f "$ROOT_DIR/roundcubemail-skin-now-larry-0.3.6.tar.gz" ; then + tar xf "$ROOT_DIR/roundcubemail-skin-now-larry-0.3.6.tar.gz" +fi + -d roundcubemail-plugins-kolab-latest && rm -rf roundcubemail-plugins-kolab-latest git clone --branch master ssh://git@git.kolab.org/diffusion/RPK/roundcubemail-plugins-kolab.git roundcubemail-plugins-kolab-latest pushd roundcubemail-plugins-kolab-latest @@ -264,6 +268,7 @@ $LESSC -x styles/print.less > styles/print.css $LESSC -x styles/embed.less > styles/embed.css popd + $LESSC --clean-css="--s1 --advanced" --rewrite-urls=all plugins/libkolab/skins/elastic/libkolab.less > plugins/libkolab/skins/elastic/libkolab.min.css bin/updatecss.sh --dir skins/elastic @@ -275,8 +280,48 @@ cp -r "roundcubemail-skin-elastic/$skin" $NAME/skins/ done +if -d "roundcubemail-skin-now-larry-0.3.6" ; then + cp -r "roundcubemail-skin-now-larry-0.3.6/skins/now-larry" $NAME/skins/ +fi + pushd $NAME + +# This is specifically for the now-larry skin +for skin in $(ls -1d skins/* | grep -E '(now-larry)'); do + skin=$(basename $skin) + + # Copy larry skin over $skin (but don't overwrite what already existis) + find \ + ./skins/larry/ \ + ./plugins/libkolab/skins/larry/ \ + -type f | sort | while read file; do + target_dir=$(dirname ${file} | sed -e 's|%{datadir}|.|g' -e 's|./public_html/assets/|./|g' -e 's|./public_html/assets/plugins/libkolab/|./|g' -e "s/larry/$skin/g") + file_name=$(basename ${file}) + echo "Target: $target_dir, file $file_name" + if ! -d ${target_dir} ; then + mkdir -p ${target_dir} + fi + if ! -f "${target_dir}/${file_name}" ; then + cp -av "${file}" "${target_dir}" + fi + done + + # Replace larry references, but don't change the depends value in meta.json + sed -i -e "s/\"larry\"/\"$skin\"/g" \ + $(find skins/$skin/ plugins/libkolab/skins/$skin/ -type f -not -name "meta.json") + + # pushd skins/$skin + # $LESSC -x styles/styles.less > styles/styles.css + # $LESSC -x styles/print.less > styles/print.css + # $LESSC -x styles/embed.less > styles/embed.css + # popd + # $LESSC --clean-css="--s1 --advanced" --rewrite-urls=all plugins/libkolab/skins/$skin/libkolab.less > plugins/libkolab/skins/$skin/libkolab.min.css + + bin/updatecss.sh --dir skins/$skin +done + +# This is for all modern skins for skin in $(ls -1d skins/* | grep -vE '(classic|elastic|larry)'); do skin=$(basename $skin)
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.