Aller au contenu

Auto-éditer un wikilivre/Annexer (Version internationalisée)/mime

Un livre de Wikilivres.

mime installation

[modifier | modifier le wikicode]

Install mime files in local mime directory

[modifier | modifier le wikicode]
  • Ce script installe les fichier addapendix.xml et annexer.xml dans le répertoire share/mime/package/.
  • Les fichiers .xml doivent se trouver dans le mâme répertoire que ce script .../tests/PACKAGES/mime/.
#!/bin/bash
#H syntax: ./install_mime.bash
#H File install_mime.bash in tests/PACKAGE/mime
#!/bin/bash
#H Command for addappendix software
#H File install_mime is in tests/PACKAGE/mime directory
VERSION=211212
#O Create variables : Workdir, Iconsdir
    if pwd | grep Add_appendix; then Workdir=~/Add_appendix
	elif pwd | grep Annexer; then Workdir=~/Annexer
	fi
Mimedir=$Workdir/share/mime
MIME	= /usr/share/mime
chmod 644 *.xml
install -d $Workdir/share/mime/packages
cp -f addappendix.xml $Mimedir/packages/addappendix.xml
cp -f annexer.xml $Mimedir/packages/annexer.xml
ls -l $Mimedir/packages/addappendix.xml
ls -l $Mimedir/packages/annexer.xml

Makefile to test and/or install mime database

[modifier | modifier le wikicode]
  • Vous pouvez également nommer ce makefile mime.mak et lancer le test avec la syntaxe ci-après
  • You can also name this makefile mime.mak and test installation with this syntax:
 make -f mime.mak -d clean install DESTDIR=./tests
 find ./tests
#!/bin/make
# file:mime.mak for packaging ubuntu addappendix or annexer
# addappendix-O~211213
# updated by french wikibooks user:Goelette_Cardabela
# To install : sudo make f- mime.mak -d clean install
# To test  : make -f mime.mak -d clean install DESTDIR=./tests
# To examine ./tests directory type find ./tests
# Lors de l'installation les fichiers sources doivent être recopiés
# d'un autre répertoire qui peut être dans ~/Add_appendix
#
# This test makefile is in $HOME/Add_appendix/tests/PACKAGES/mime
# system directories

MIME			= $(DESTDIR)/usr/share/mime

install:
	install -d $(MIME) $(MIME)/packages
	# for simulation in package root directory
	if [ -e $(HOME)/Annexer/share/mime/packages ]; then \
		@echo "local Sharedir = $(HOME)/Annexer/share";\
		cp -f $(HOME)/Annexer/share/mime/packages/addappendix.xml $(MIME)/packages/addappendix.xml;\
		cp -f $(HOME)/Annexer/share/mime/packages/annexer.xml $(MIME)/packages/annexer.xml;\
	elif\
		[ -e $(HOME)/Add_appendix/share/mime/packages ]; then \
			@echo "local Sharedir =$(HOME)/Add_appendix/share)";\
			cp -f $(HOME)/Add_appendix/share/mime/packages/addappendix.xml $(MIME)/packages/addappendix.xml;\
			cp -f $(HOME)/Add_appendix/share/mime/packages/annexer.xml $(MIME)/packages/annexer.xml;\
	else echo "pgm directory not found."; exit 255;\
	fi
	@if [ -z $(DESTDIR) ]; then sudo update-mime-database /usr/share/mime; fi
	
clean:

find ./tests result :

./tests
./tests/usr
./tests/usr/share
./tests/usr/share/mime
./tests/usr/share/mime/packages
./tests/usr/share/mime/packages/addappendix.xml
./tests/usr/share/mime/packages/annexer.xml

addappendix.xml

[modifier | modifier le wikicode]
<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
  <mime-type type="application/addappendix">
    <comment>addappendix project</comment>
    <comment xml:lang="ar">مشروع addappendix</comment>
    <comment xml:lang="ast">proyeutu de addappendix</comment>
    <comment xml:lang="az">addappendix layihəsi</comment>
    <comment xml:lang="be">Prajekt addappendix</comment>
    <comment xml:lang="be@latin">Prajekt addappendix</comment>
    <comment xml:lang="bg">Проект  addappendix</comment>
    <comment xml:lang="bo">addappendix ལས་གཞི</comment>
    <comment xml:lang="bs">Glejd projekat</comment>
    <comment xml:lang="ca">projecte de addappendix</comment>
    <comment xml:lang="cs">Projekt addappendix</comment>
    <comment xml:lang="cy">Prosiect addappendix</comment>
    <comment xml:lang="da">addappendixprojekt</comment>
    <comment xml:lang="de">addappendix-Projekt</comment>
    <comment xml:lang="el">έργο addappendix</comment>
    <comment xml:lang="en_AU">addappendix project</comment>
    <comment xml:lang="en_GB">addappendix project</comment>
    <comment xml:lang="eo">addappendix-projekto</comment>
    <comment xml:lang="es">proyecto de addappendix</comment>
    <comment xml:lang="eu">addappendix proiektua</comment>
    <comment xml:lang="fi">addappendix-projekti</comment>
    <comment xml:lang="fo">addappendix verkætlan</comment>
    <comment xml:lang="fr">projet addappendix</comment>
    <comment xml:lang="ga">tionscadal addappendix</comment>
    <comment xml:lang="gl">proxecto de addappendix</comment>
    <comment xml:lang="he">מיזם addappendix</comment>
    <comment xml:lang="hr">addappendix projekt</comment>
    <comment xml:lang="hu">addappendix-projekt</comment>
    <comment xml:lang="id">Proyek addappendix</comment>
    <comment xml:lang="it">Progetto addappendix</comment>
    <comment xml:lang="ja">addappendix プロジェクト</comment>
    <comment xml:lang="kk">addappendix жобасы</comment>
    <comment xml:lang="ko">addappendix 프로젝트</comment>
    <comment xml:lang="lt">addappendix projektas</comment>
    <comment xml:lang="lv">addappendix projekts</comment>
    <comment xml:lang="ms">Projek addappendix</comment>
    <comment xml:lang="nb">addappendix prosjekt</comment>
    <comment xml:lang="nl">addappendix-project</comment>
    <comment xml:lang="nn">addappendix prosjekt</comment>
    <comment xml:lang="no">addappendix prosjekt</comment>
    <comment xml:lang="oc">Projècte addappendix</comment>
    <comment xml:lang="pl">Projekt addappendix</comment>
    <comment xml:lang="pt">projecto addappendix</comment>
    <comment xml:lang="pt_BR">Projeto do addappendix</comment>
    <comment xml:lang="ro">Proiect addappendix</comment>
    <comment xml:lang="ru">проект addappendix</comment>
    <comment xml:lang="sk">Projekt addappendix</comment>
    <comment xml:lang="sl">Datoteka projekta addappendix</comment>
    <comment xml:lang="sq">Projekt addappendix</comment>
    <comment xml:lang="sr">Глејд пројекат</comment>
    <comment xml:lang="sv">addappendix-projekt</comment>
    <comment xml:lang="ug">addappendix قۇرۇلۇشى</comment>
    <comment xml:lang="uk">проект addappendix</comment>
    <comment xml:lang="vi">Dự án addappendix</comment>
    <comment xml:lang="zh_CN">addappendix 工程</comment>
    <comment xml:lang="zh_TW">addappendix 專案</comment>
    <acronym>ADDAPPENDIXPROJECT</acronym>
    <sub-class-of type="application/xml"/>
    <generic-icon name="addappendix"/>
    <glob pattern="*.appendix"/>
    <glob pattern="*.scli"/>
	<glob pattern="*.sclic"/>
	<glob pattern="*.sclt"/>  
    <alias type="application/annexer"/>
  </mime-type>
</mime-info>
<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
  <mime-type type="application/annexer">
    <comment>annexer project</comment>
    <comment xml:lang="ar">مشروع annexer</comment>
    <comment xml:lang="ast">proyeutu de annexer</comment>
    <comment xml:lang="az">annexer layihəsi</comment>
    <comment xml:lang="be">Prajekt annexer</comment>
    <comment xml:lang="be@latin">Prajekt annexer</comment>
    <comment xml:lang="bg">Проект  annexer</comment>
    <comment xml:lang="bo">annexer ལས་གཞི</comment>
    <comment xml:lang="bs">Glejd projekat</comment>
    <comment xml:lang="ca">projecte de annexer</comment>
    <comment xml:lang="cs">Projekt annexer</comment>
    <comment xml:lang="cy">Prosiect annexer</comment>
    <comment xml:lang="da">annexerprojekt</comment>
    <comment xml:lang="de">annexer-Projekt</comment>
    <comment xml:lang="el">έργο annexer</comment>
    <comment xml:lang="en_AU">annexer project</comment>
    <comment xml:lang="en_GB">annexer project</comment>
    <comment xml:lang="eo">annexer-projekto</comment>
    <comment xml:lang="es">proyecto de annexer</comment>
    <comment xml:lang="eu">annexer proiektua</comment>
    <comment xml:lang="fi">annexer-projekti</comment>
    <comment xml:lang="fo">annexer verkætlan</comment>
    <comment xml:lang="fr">projet annexer</comment>
    <comment xml:lang="ga">tionscadal annexer</comment>
    <comment xml:lang="gl">proxecto de annexer</comment>
    <comment xml:lang="he">מיזם annexer</comment>
    <comment xml:lang="hr">annexer projekt</comment>
    <comment xml:lang="hu">annexer-projekt</comment>
    <comment xml:lang="id">Proyek annexer</comment>
    <comment xml:lang="it">Progetto annexer</comment>
    <comment xml:lang="ja">annexer プロジェクト</comment>
    <comment xml:lang="kk">annexer жобасы</comment>
    <comment xml:lang="ko">annexer 프로젝트</comment>
    <comment xml:lang="lt">annexer projektas</comment>
    <comment xml:lang="lv">annexer projekts</comment>
    <comment xml:lang="ms">Projek annexer</comment>
    <comment xml:lang="nb">annexer prosjekt</comment>
    <comment xml:lang="nl">annexer-project</comment>
    <comment xml:lang="nn">annexer prosjekt</comment>
    <comment xml:lang="no">annexer prosjekt</comment>
    <comment xml:lang="oc">Projècte annexer</comment>
    <comment xml:lang="pl">Projekt annexer</comment>
    <comment xml:lang="pt">projecto annexer</comment>
    <comment xml:lang="pt_BR">Projeto do annexer</comment>
    <comment xml:lang="ro">Proiect annexer</comment>
    <comment xml:lang="ru">проект annexer</comment>
    <comment xml:lang="sk">Projekt annexer</comment>
    <comment xml:lang="sl">Datoteka projekta annexer</comment>
    <comment xml:lang="sq">Projekt annexer</comment>
    <comment xml:lang="sr">Глејд пројекат</comment>
    <comment xml:lang="sv">annexer-projekt</comment>
    <comment xml:lang="ug">annexer قۇرۇلۇشى</comment>
    <comment xml:lang="uk">проект annexer</comment>
    <comment xml:lang="vi">Dự án annexer</comment>
    <comment xml:lang="zh_CN">annexer 工程</comment>
    <comment xml:lang="zh_TW">annexer 專案</comment>
    <acronym>PROJETANNEXER</acronym>
    <sub-class-of type="application/xml"/>
    <generic-icon name="addappendix"/>
    <glob pattern="*.appendix"/>
    <glob pattern="*.scli"/>
	<glob pattern="*.sclic"/>
	<glob pattern="*.sclt"/>  
    <alias type="application/addappendix"/>
  </mime-type>
</mime-info>