~mozillateam/xulrunner/xulrunner-1.9.dev

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Alexander Sack
  • Date: 2008-09-23 15:46:03 UTC
  • mfrom: (65.1.286 xulrunner-1.9.head)
  • Revision ID: asac@jwsdot.com-20080923154603-x85l4omy7r10c7tj
* (merge) RELEASE 1.9.0.2+build6+nobinonly-0ubuntu1 to ubuntu/intrepid

Show diffs side-by-side

added added

removed removed

Lines of Context:
122
122
                $(NULL)
123
123
endif
124
124
 
 
125
NOT_EXECUTABLE = \
 
126
        *.xml \
 
127
        *.js  \
 
128
        *.png \
 
129
        *.xpm \
 
130
        *.txt \
 
131
        LICENSE \
 
132
        $(NULL)
 
133
 
125
134
ifeq (1,$(USE_SYSTEM_NSS))
126
135
binary-install/$(DEB_MOZ_APPLICATION)::
127
136
        dh_link usr/lib/nss/libnssckbi.so $(DEBIAN_XUL_DIR)/libnssckbi.so
137
146
        dh_link $(DEBIAN_XUL_DIR)/libsqlite3.so $(DEBIAN_XUL_DIR)/libsqlite3.so.0
138
147
endif
139
148
        dh_install debian/system-greprefs.js /etc/xulrunner-$(DEB_MOZ_VERSION)/ 
140
 
        dh_link /etc/xulrunner-$(DEB_MOZ_VERSION)/system-grepref.js $(DEBIAN_XUL_DIR)/greprefs/system-greprefs.js
141
 
        # Set 644 chmod to png files
142
 
        chmod 644 debian/xulrunner-$(DEB_MOZ_VERSION)/$(DEBIAN_XUL_DIR)/chrome/icons/default/default16.png
143
 
        chmod 644 debian/xulrunner-$(DEB_MOZ_VERSION)/$(DEBIAN_XUL_DIR)/chrome/icons/default/default32.png
144
 
        chmod 644 debian/xulrunner-$(DEB_MOZ_VERSION)/$(DEBIAN_XUL_DIR)/chrome/icons/default/default48.png
145
 
        chmod 644 debian/xulrunner-$(DEB_MOZ_VERSION)/$(DEBIAN_XUL_DIR)/icons/document.png
146
 
        chmod 644 debian/xulrunner-$(DEB_MOZ_VERSION)/$(DEBIAN_XUL_DIR)/res/html/folder.png
 
149
        dh_link /etc/xulrunner-$(DEB_MOZ_VERSION)/system-greprefs.js $(DEBIAN_XUL_DIR)/greprefs/system-greprefs.js
147
150
 
148
151
LOCALE_VERSION = $(shell echo $(DEBIAN_VERSION) | sed -e 's/~cvs.*/pre/' | tr -d '~')
149
152
 
150
 
binary-post-install/$(DEB_MOZ_APPLICATION):: auto-locale-xpi.mk/translate compare
 
153
binary-post-install/$(DEB_MOZ_APPLICATION):: auto-locale-xpi.mk/translate fix-permissions compare
151
154
        dh_install -p$(DEB_MOZ_APPLICATION)-dev debian/build-system.tar.gz /usr/lib/xulrunner-devel-$(DEBIAN_XUL_VER)/sdk/
152
155
        sed \
153
156
                -e 's/@EM_VERSION@/$(EM_TRANSLATION_VERSION)/' \
159
162
        $(error EM_TRANSLATION_VERSION=$(EM_TRANSLATION_VERSION) LOCALE_VERSION=$(LOCALE_VERSION). You need to explicitly adjust the translation version and min/max bounds.)
160
163
endif
161
164
 
 
165
FIND_EXP = $(foreach ext,$(NOT_EXECUTABLE),-name '$(ext)' -o)
 
166
FIND_NOT_EXECUTABLE = $(wordlist 1, $(shell expr $(words $(FIND_EXP)) - 1), $(FIND_EXP))
 
167
 
162
168
post-patches:: debian/$(DEB_MOZ_APPLICATION).postrm
163
169
        # Create a build-system for xulrunner applications
164
170
        sh debian/create-build-system.sh
165
171
 
 
172
fix-permissions:
 
173
        # Fix permissions
 
174
        cd debian ; \
 
175
        find . -type f \( $(FIND_NOT_EXECUTABLE) \) -perm -u=x -exec chmod -c 644 {} \;
 
176
 
166
177
debian/$(DEB_MOZ_APPLICATION).postrm: debian/$(DEB_MOZ_APPLICATION).postrm.in
167
178
        sed -e 's,@XULDIR@,$(DEBIAN_XUL_DIR),g' < debian/$(DEB_MOZ_APPLICATION).postrm.in \
168
179
        > debian/$(DEB_MOZ_APPLICATION).postrm