"Fossies" - the Fresh Open Source Software Archive

Member "jitsi-meet-5186/debian/rules" (30 Jul 2021, 1027 Bytes) of package /linux/misc/jitsi-meet-5186.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Make source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/usr/bin/make -f
    2 
    3 # Uncomment this to turn on verbose mode.
    4 #export DH_VERBOSE=1
    5 
    6 LANGUAGES := $(shell node -p "Object.keys(require('./lang/languages.json')).join(' ')")
    7 COUNTRIES_DIR := node_modules/i18n-iso-countries/langs
    8 
    9 %:
   10     dh $@
   11 
   12 # we skip making Makefile exists for updating browserify modules when developing
   13 override_dh_auto_build:
   14 
   15 override_dh_install: $(LANGUAGES)
   16     dh_installdirs
   17     dh_install
   18 
   19 $(LANGUAGES):
   20     LOCALE=$$(echo $@ | cut -c1-2) ; \
   21     if [ -f $(COUNTRIES_DIR)/$@.json ] ; \
   22     then \
   23         dh_install -pjitsi-meet-web $(COUNTRIES_DIR)/$@.json usr/share/jitsi-meet/lang/; \
   24         mv debian/jitsi-meet-web/usr/share/jitsi-meet/lang/$@.json debian/jitsi-meet-web/usr/share/jitsi-meet/lang/countries-$@.json; \
   25     else \
   26         if [ -f $(COUNTRIES_DIR)/$$LOCALE.json ] ; \
   27         then \
   28             dh_install -pjitsi-meet-web $(COUNTRIES_DIR)/$$LOCALE.json usr/share/jitsi-meet/lang/; \
   29             mv debian/jitsi-meet-web/usr/share/jitsi-meet/lang/$$LOCALE.json debian/jitsi-meet-web/usr/share/jitsi-meet/lang/countries-$@.json; \
   30         fi; \
   31     fi;