Projects
Kolab:3.4
roundcubemail-plugins-kolab
debian.rules
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File debian.rules of Package roundcubemail-plugins-kolab (Revision 57)
Currently displaying revision
57
,
Show latest
#!/usr/bin/make -f # Uncomment this to turn on verbose mode. # export DH_VERBOSE=1 %: dh $@ override_dh_install: dh_install -XLICENSE -X.gitignore # Fix anything executable that does not have a shebang for file in $$(find $(CURDIR)/debian/roundcubemail-plugins-kolab/usr/share/roundcubemail/plugins -type f -perm /a+x); do \ [ -z "$$(head -n 1 $$file | grep \"^#!/\")" ] && chmod -v 644 $$file ; \ done # Find files with a shebang that do not have executable permissions for file in $$(find $(CURDIR)/debian/roundcubemail-plugins-kolab/usr/share/roundcubemail/plugins -type f ! -perm /a+x); do \ [ ! -z "$$(head -n 1 $file | grep \"^#!/\")" ] && chmod -v 755 $$file ; \ done # Find files that have non-standard-executable-perm find $(CURDIR)/debian/roundcubemail-plugins-kolab/usr/share/roundcubemail/plugins -type f -perm /g+wx -exec chmod -v g-w {} \; # Find files that are not readable find $(CURDIR)/debian/roundcubemail-plugins-kolab/usr/share/roundcubemail/plugins -type f ! -perm /go+r -exec chmod -v go+r {} \; # Copy plugin configuration files to the correct location for conffile in $$(find $(CURDIR)/debian/roundcubemail-plugins-kolab/usr/share/roundcubemail/plugins -type f -name "config.inc.php.dist"); do \ plugin=$$(basename $$(dirname $$conffile)); \ mv $$conffile $(CURDIR)/debian/roundcubemail-plugins-kolab/etc/roundcubemail/$$plugin.inc.php; \ ln -s ../../../../../etc/roundcubemail/$$plugin.inc.php $(CURDIR)/debian/roundcubemail-plugins-kolab/usr/share/roundcubemail/plugins/$$plugin/config.inc.php; \ done # Compress the CSS for file in `find $(CURDIR)/debian/roundcubemail/usr/share/roundcubemail/ -type f -name "*.css"`; do \ asset_loc=$$(dirname $$(echo $$file | sed -e "s|/usr/share/roundcubemail/|/usr/share/roundcubemail/public_html/assets/|g")) ; \ install -pm 755 -d $$asset_loc ; \ cp -av $$file $$asset_loc/$$(basename $$file) ; \ done # Compress the JS for file in `find $(CURDIR)/debian/roundcubemail/usr/share/roundcubemail/ -type f -name "*.js"`; do \ asset_loc=$$(dirname $$(echo $$file | sed -e "s|/usr/share/roundcubemail/|/usr/share/roundcubemail/public_html/assets/|g")) ; \ install -pm 755 -d $$asset_loc ; \ cp -av $$file $$asset_loc/$$(basename $$file) ; \ done # Remove the original temp location in order for us to be able to replace it with a symbolic link rm -rf $(CURDIR)/debian/roundcubemail-plugins-kolab/usr/share/roundcubemail/plugins/odfviewer/files
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
.