Projects
Kolab:16:Enterprise
roundcubemail-skin-kolab
debian.rules
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File debian.rules of Package roundcubemail-skin-kolab
#!/usr/bin/make -f # Uncomment this to turn on verbose mode. export DH_VERBOSE=1 %: dh $@ override_dh_install: rm -rvf base4kids/ rm -rvf contargo/ rm -rvf now/ rm -rvf plesk/ find . | sort find \ /usr/share/roundcubemail/skins/elastic/ \ /usr/share/roundcubemail/public_html/assets/skins/elastic/ \ /usr/share/roundcubemail/plugins/libkolab/skins/elastic/ \ /usr/share/roundcubemail/public_html/assets/plugins/libkolab/skins/elastic/ \ -type f | sort | while read file; do \ target_dir=$$(dirname $${file} | sed -e 's|/usr/share/roundcubemail|.|g' -e 's|/public_html/assets/|/|g' -e 's|/public_html/assets/plugins/libkolab/|/|g' -e 's/elastic/kolab/g') ; \ file_name=$$(basename $${file}) ; \ if [ ! -d i$${target_dir} ]; then \ mkdir -p $${target_dir} ; \ fi ; \ cp -av $${file} $${target_dir} ; \ done find . | sort sed -i -e 's/"elastic"/"kolab"/g' \ $$(find skins/kolab/ plugins/libkolab/skins/kolab/ -type f) find kolab/ -type f | sort | while read file; do \ target_dir="./skins/$$(dirname $${file})" ; \ file_name=$$(basename $${file}) ; \ if [ ! -d $${target_dir} ]; then \ mkdir -p $${target_dir} ; \ fi ; \ cp -av $${file} $${target_dir} ; \ done rm -rvf kolab/ sed -i -e 's/"elastic"/"kolab"/g' plugins/libkolab/skins/kolab/libkolab.less for file in $$(find . -type f -name "styles.less" -o -name "print.less" -o -name "embed.less" -o -name "libkolab.less"); do \ lessc --relative-urls $${file} > $$(dirname $${file})/$$(basename $${file} .less).css ; \ sed -i \ -e "s|../../../skins/kolab/images/contactpic.png|../../../../skins/kolab/images/contactpic.png|" \ -e "s|../../../skins/kolab/images/watermark.jpg|../../../../skins/kolab/images/watermark.jpg|" \ $$(dirname $${file})/$$(basename $${file} .less).css ; \ done for orig_dir in "skins/kolab/" "plugins/libkolab/skins/kolab/"; do \ asset_dir="public_html/assets/$${orig_dir}" ; \ \ # Compress the CSS ; \ for file in `find $${orig_dir} -type f -name "*.css"`; do \ asset_loc=$$(dirname $$(echo $${file} | sed -e "s|$${orig_dir}|$${asset_dir}|g")) ; \ mkdir -p $${asset_loc} ; \ cat $${file} | cssmin > $${asset_loc}/$$(basename $${file}) ; \ done || : \ \ # Compress the JS, but not the already minified ; \ for file in `find $${orig_dir} -type f -name "*.js" ! -name "*.min.js"`; do \ asset_loc=$$(dirname $$(echo $${file} | sed -e "s|$${orig_dir}|$${asset_dir}|g")) ; \ mkdir -p $${asset_loc} ; \ uglifyjs $${file} > $${asset_loc}/$$(basename $${file}) ; \ done || : \ \ # The already minified JS can just be copied over to the assets location ; \ for file in `find $${orig_dir} -type f -name "*.min.js"`; do \ asset_loc=$$(dirname $$(echo $${file} | sed -e "s|$${orig_dir}|$${asset_dir}|g")) ; \ mkdir -p $${asset_loc} ; \ cp -av $${file} $${asset_loc}/$$(basename $${file}) ; \ done || : \ \ # Other assets ; \ for file in $$(find $${orig_dir} -type f \ -name "*.eot" -o \ -name "*.gif" -o \ -name "*.ico" -o \ -name "*.jpg" -o \ -name "*.mp3" -o \ -name "*.png" -o \ -name "*.svg" -o \ -name "*.swf" -o \ -name "*.tif" -o \ -name "*.ttf" -o \ -name "*.woff" -o \ -name "*.woff2" \ ); do \ asset_loc=$$(dirname $$(echo $${file} | sed -e "s|$${orig_dir}|$${asset_dir}|g")) ; \ mkdir -p $${asset_loc} ; \ cp -avf $${file} $${asset_loc}/$$(basename $${file}) ; \ done || : \ \ # Purge empty directories ; \ find $${orig_dir} -type d -empty -delete || : ; \ done cp -av skins/kolab/watermark.html public_html/assets/skins/kolab/watermark.html find . | sort rm -rvf skins/elastic/ rm -rvf plugins/libkolab/skins/elastic/ rm -rvf public_html/assets/plugins/libkolab/skins/elastic/ rm -rvf public_html/assets/skins/elastic/ cp -av skins/kolab/ debian/roundcubemail-skin-kolab/usr/share/roundcubemail/skins/. cp -av plugins/libkolab/skins/kolab/ debian/roundcubemail-skin-kolab/usr/share/roundcubemail/plugins/libkolab/skins/. cp -av public_html/assets/plugins/libkolab/skins/kolab/ debian/roundcubemail-skin-kolab/usr/share/roundcubemail/public_html/assets/plugins/libkolab/skins/. cp -av public_html/assets/skins/kolab/ debian/roundcubemail-skin-kolab/usr/share/roundcubemail/public_html/assets/skins/.
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
.