Merge lp:~ubuntu-fr-scripts/ufrs-audio/audio-new into lp:ufrs-audio

Proposed by Jean-Mi
Status: Needs review
Proposed branch: lp:~ubuntu-fr-scripts/ufrs-audio/audio-new
Merge into: lp:ufrs-audio
Diff against target: None lines
To merge this branch: bzr merge lp:~ubuntu-fr-scripts/ufrs-audio/audio-new
Reviewer Review Type Date Requested Status
Jean-Mi passage branche principale Approve
Etienne Gadeski passage branche principale Pending
Review via email: mp+4874@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Jean-Mi (jeanmi) wrote :

pour faire le tri de ce qui ira dans la branche principale

Revision history for this message
Jean-Mi (jeanmi) wrote :

Passage à la branche principale en vue du tri à faire

review: Approve (passage branche principale)
26. By Jean-Mi

migration de convto -> convto.sh + pod

27. By Jean-Mi

Corrections audio.sh ajout audio.conf pour surcharge des variables

28. By Jean-Mi

corrections localisation fichier conf et ajout cut en fin du script audio.sh

29. By Jean-Mi

amélioration du traitement du fichier de configuration

30. By Jean-Mi

amélioration de la prise en compte du fichier de configuration

31. By Jean-Mi

corrections typo

Unmerged revisions

31. By Jean-Mi

corrections typo

30. By Jean-Mi

amélioration de la prise en compte du fichier de configuration

29. By Jean-Mi

amélioration du traitement du fichier de configuration

28. By Jean-Mi

corrections localisation fichier conf et ajout cut en fin du script audio.sh

27. By Jean-Mi

Corrections audio.sh ajout audio.conf pour surcharge des variables

26. By Jean-Mi

migration de convto -> convto.sh + pod

25. By Jean-Mi

suppression fichiers inutiles, modification convto, récupération de la dernière version de script.sh

24. By Jean-Mi

Je commence la migration du scritp convto en convto.sh

23. By Jean-Mi

Les pensées du jour

22. By Jean-Mi

ajout des scripts de pmd

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'LICENSE'
2--- LICENSE 1970-01-01 00:00:00 +0000
3+++ LICENSE 2009-03-09 20:55:34 +0000
4@@ -0,0 +1,225 @@
5+GNU GENERAL PUBLIC LICENSE
6+
7+Version 3, 29 June 2007
8+
9+Copyright © 2007 Free Software Foundation, Inc. <http://fsf.org/>
10+
11+Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
12+Preamble
13+
14+The GNU General Public License is a free, copyleft license for software and other kinds of works.
15+
16+The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too.
17+
18+When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things.
19+
20+To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others.
21+
22+For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.
23+
24+Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it.
25+
26+For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions.
27+
28+Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users.
29+
30+Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free.
31+
32+The precise terms and conditions for copying, distribution and modification follow.
33+TERMS AND CONDITIONS
34+0. Definitions.
35+
36+“This License” refers to version 3 of the GNU General Public License.
37+
38+“Copyright” also means copyright-like laws that apply to other kinds of works, such as semiconductor masks.
39+
40+“The Program” refers to any copyrightable work licensed under this License. Each licensee is addressed as “you”. “Licensees” and “recipients” may be individuals or organizations.
41+
42+To “modify” a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a “modified version” of the earlier work or a work “based on” the earlier work.
43+
44+A “covered work” means either the unmodified Program or a work based on the Program.
45+
46+To “propagate” a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well.
47+
48+To “convey” a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying.
49+
50+An interactive user interface displays “Appropriate Legal Notices” to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion.
51+1. Source Code.
52+
53+The “source code” for a work means the preferred form of the work for making modifications to it. “Object code” means any non-source form of a work.
54+
55+A “Standard Interface” means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language.
56+
57+The “System Libraries” of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A “Major Component”, in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it.
58+
59+The “Corresponding Source” for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work.
60+
61+The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source.
62+
63+The Corresponding Source for a work in source code form is that same work.
64+2. Basic Permissions.
65+
66+All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law.
67+
68+You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you.
69+
70+Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary.
71+3. Protecting Users' Legal Rights From Anti-Circumvention Law.
72+
73+No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures.
74+
75+When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures.
76+4. Conveying Verbatim Copies.
77+
78+You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program.
79+
80+You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee.
81+5. Conveying Modified Source Versions.
82+
83+You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions:
84+
85+ * a) The work must carry prominent notices stating that you modified it, and giving a relevant date.
86+ * b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to “keep intact all notices”.
87+ * c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it.
88+ * d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so.
89+
90+A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an “aggregate” if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate.
91+6. Conveying Non-Source Forms.
92+
93+You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways:
94+
95+ * a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange.
96+ * b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge.
97+ * c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b.
98+ * d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements.
99+ * e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d.
100+
101+A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work.
102+
103+A “User Product” is either (1) a “consumer product”, which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, “normally used” refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product.
104+
105+“Installation Information” for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made.
106+
107+If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM).
108+
109+The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network.
110+
111+Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying.
112+7. Additional Terms.
113+
114+“Additional permissions” are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions.
115+
116+When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission.
117+
118+Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms:
119+
120+ * a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or
121+ * b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or
122+ * c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or
123+ * d) Limiting the use for publicity purposes of names of licensors or authors of the material; or
124+ * e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or
125+ * f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors.
126+
127+All other non-permissive additional terms are considered “further restrictions” within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying.
128+
129+If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms.
130+
131+Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way.
132+8. Termination.
133+
134+You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11).
135+
136+However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation.
137+
138+Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice.
139+
140+Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10.
141+9. Acceptance Not Required for Having Copies.
142+
143+You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so.
144+10. Automatic Licensing of Downstream Recipients.
145+
146+Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License.
147+
148+An “entity transaction” is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts.
149+
150+You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it.
151+11. Patents.
152+
153+A “contributor” is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's “contributor version”.
154+
155+A contributor's “essential patent claims” are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, “control” includes the right to grant patent sublicenses in a manner consistent with the requirements of this License.
156+
157+Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version.
158+
159+In the following three paragraphs, a “patent license” is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To “grant” such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party.
160+
161+If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. “Knowingly relying” means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid.
162+
163+If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it.
164+
165+A patent license is “discriminatory” if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007.
166+
167+Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law.
168+12. No Surrender of Others' Freedom.
169+
170+If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program.
171+13. Use with the GNU Affero General Public License.
172+
173+Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such.
174+14. Revised Versions of this License.
175+
176+The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
177+
178+Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License “or any later version” applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation.
179+
180+If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program.
181+
182+Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version.
183+15. Disclaimer of Warranty.
184+
185+THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
186+16. Limitation of Liability.
187+
188+IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
189+17. Interpretation of Sections 15 and 16.
190+
191+If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee.
192+
193+END OF TERMS AND CONDITIONS
194+How to Apply These Terms to Your New Programs
195+
196+If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.
197+
198+To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the “copyright” line and a pointer to where the full notice is found.
199+
200+ <one line to give the program's name and a brief idea of what it does.>
201+ Copyright (C) <year> <name of author>
202+
203+ This program is free software: you can redistribute it and/or modify
204+ it under the terms of the GNU General Public License as published by
205+ the Free Software Foundation, either version 3 of the License, or
206+ (at your option) any later version.
207+
208+ This program is distributed in the hope that it will be useful,
209+ but WITHOUT ANY WARRANTY; without even the implied warranty of
210+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
211+ GNU General Public License for more details.
212+
213+ You should have received a copy of the GNU General Public License
214+ along with this program. If not, see <http://www.gnu.org/licenses/>.
215+
216+Also add information on how to contact you by electronic and paper mail.
217+
218+If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode:
219+
220+ <program> Copyright (C) <year> <name of author>
221+ This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
222+ This is free software, and you are welcome to redistribute it
223+ under certain conditions; type `show c' for details.
224+
225+The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an “about box”.
226+
227+You should also get your employer (if you work as a programmer) or school, if any, to sign a “copyright disclaimer” for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see <http://www.gnu.org/licenses/>.
228+
229+The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read <http://www.gnu.org/philosophy/why-not-lgpl.html>.
230
231=== added file 'NEWS.convto'
232--- NEWS.convto 1970-01-01 00:00:00 +0000
233+++ NEWS.convto 2009-03-17 00:18:17 +0000
234@@ -0,0 +1,5 @@
235+###############################################################################
236+mardi 17 mars 2009, 00:02:26 (UTC+0100)
237+###############################################################################
238+Ajout du traitement récursif
239+
240
241=== added file 'TODO'
242--- TODO 1970-01-01 00:00:00 +0000
243+++ TODO 2009-03-17 01:34:59 +0000
244@@ -0,0 +1,14 @@
245+###############################################################################
246+mardi 17 mars 2009, 00:02:26 (UTC+0100)
247+###############################################################################
248+Fidji
249+Trouver un vimrc pour scripts et bzr si ça existe
250+
251+###############################################################################
252+vendredi 13 mars 2009, 06:06:31 (UTC+0100)
253+###############################################################################
254+Fidji
255+Ajouter un script de création de playtlists
256+find ~/music/ -iname "*.mp3" -print > ~/Desktop/playlist.m3u
257+ * Choix de création d'une playlist par dossier et ou générale
258+ * Choix des types de fichiers
259
260=== added file 'TODO.convto'
261--- TODO.convto 1970-01-01 00:00:00 +0000
262+++ TODO.convto 2009-03-17 00:18:17 +0000
263@@ -0,0 +1,34 @@
264+###############################################################################
265+mardi 17 mars 2009, 00:02:26 (UTC+0100)
266+###############################################################################
267+Tester les modifications prenant en compte le traitement récursif
268+Utiliser le modèle POD de Mathias
269+Standardiser l'usage du .sh
270+Intégrer l'option pour :
271+ suppressions des blanc dans les noms de fichiers
272+ supprimer les accents
273+ supprimer les .#~ et autres caractères
274+ Minuscule/Majuscule
275+ Création d'un playlist
276+ convertir en utf8 ou autre charset
277+Trouver un vimrc pour scripts et bzr si ça existe
278+
279+
280+###############################################################################
281+vendredi 13 mars 2009, 06:06:31 (UTC+0100)
282+###############################################################################
283+Ajouter la prise en charge d'autres formats audio
284+Ajouter une option pour supprimer la source une fois convertie
285+Intégrer le traitement récursif sur les répertoires
286+Ajouter une option pour ajuster la qualité des mp3 (défaut 192)
287+
288+###############################################################################
289+Jeudi 12 mars 2009, 08:01:24 (UTC+0100)
290+###############################################################################
291+Intégrer le traitement récursif sur les dossiers
292+Tests de conversion ogg <-> mp3
293+
294+convto mp3 *.ogg # ok
295+convto ogg *.mp3 # ok
296+convto ogg . # Erreur
297+convto mp3 . # Erreur
298
299=== added file 'TODO.mp3gainize'
300--- TODO.mp3gainize 1970-01-01 00:00:00 +0000
301+++ TODO.mp3gainize 2009-03-13 05:19:32 +0000
302@@ -0,0 +1,6 @@
303+###############################################################################
304+vendredi 13 mars 2009, 06:06:31 (UTC+0100)
305+###############################################################################
306+Adapter le script en prenant pour modèle le script convto
307+Traitement par défaut par album, ajouter un fichier de configuration pour solo
308+
309
310=== added file 'TODO.playdir'
311--- TODO.playdir 1970-01-01 00:00:00 +0000
312+++ TODO.playdir 2009-03-13 05:36:10 +0000
313@@ -0,0 +1,6 @@
314+###############################################################################
315+vendredi 13 mars 2009, 06:06:31 (UTC+0100)
316+###############################################################################
317+Ajouter la prise en charge d'autres formats audio
318+Intégrer le traitement récursif sur les répertoires
319+
320
321=== added file 'audio_convertor'
322--- audio_convertor 1970-01-01 00:00:00 +0000
323+++ audio_convertor 2009-03-12 16:54:50 +0000
324@@ -0,0 +1,103 @@
325+#!/bin/bash
326+# Auteur : Etienne Gadeski
327+# This program is free software; you can redistribute it and/or modify
328+# it under the terms of the GNU General Public License as published by
329+# the Free Software Foundation; either version 2 of the License, or
330+# (at your option) any later version.
331+#
332+# This program is distributed in the hope that it will be useful,
333+# but WITHOUT ANY WARRANTY; without even the implied warranty of
334+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
335+# GNU General Public License for more details.
336+#
337+# You should have received a copy of the GNU General Public License
338+# along with this program; if not, write to the Free Software
339+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
340+# MA 02110-1301, USA.
341+#
342+# Désolé pour la suppression du script... Mea culpa, Mea maxima culpa
343+# usage : audio_convertor [ -r (recursif) | -d (dossier) ] ogg2mp3 | mp32ogg fichier | dossier
344+gethelp() {
345+ echo "${0##*/} [ -r (recursif) | -d (dossier) ] ogg2mp3 | mp32ogg fichier | dossier"
346+}
347+
348+#---testdir effectue des test sur le dossier a traiter
349+testdir() {
350+ if [ ! -d "$1" ] ; then
351+ echo "Dossier invalide"
352+ echo
353+ gethelp
354+ return 1
355+ elif [ ! -r "$1" ] ; then
356+ echo "Dossier invalide"
357+ echo
358+ gethelp
359+ return 2
360+ elif [ ! -w "$1" ] ; then
361+ echo "Dossier invalide"
362+ gethelp
363+ return 3
364+ else
365+ return 0
366+ fi
367+}
368+
369+#---testfic effectue des test sur le fichier a traiter
370+testfic() {
371+ if [ ! -f "$1" ] ; then
372+ echo "Fichier invalide"
373+ echo
374+ gethelp
375+ return 1
376+ elif [ ! -r "$1" ] ; then
377+ echo "Fichier invalide"
378+ echo
379+ gethelp
380+ return 2
381+ elif [ ! -w "$PWD" ] ; then
382+ echo "Ne peut ecrire dans $PWD"
383+ echo
384+ gethelp
385+ return 3
386+ else
387+ return 0
388+ fi
389+}
390+[ "$#" -eq 0 ] && echo "Parametres insuffisants" && exit 1
391+MODE=solo
392+until [ "$#" -eq 0 ] ; do # tant qu'il y a des parametres
393+ case "$1" in
394+ mp32ogg) OPTMP3="--"
395+ FROM=mp3
396+ TO=ogg;;
397+ ogg2mp3) OPTMP3="-ab 192k"
398+ FROM=ogg
399+ TO=mp3;;
400+ -r) MODE=recursif;;
401+ -d) MODE=dossier;;
402+ -h|--help) gethelp;;
403+ *) case "$MODE" in
404+ recursif) testdir "$1" && \
405+ while read -d $'\0' "fic"
406+ do
407+ ffmpeg -i "$fic" "$OPTMP3" "${fic%.${FROM}}.${TO}" >/dev/null 2>&1
408+ done < <(find "$1" -name "*.${FROM}" -print0)
409+ ;;
410+ dossier)
411+ testdir "$1" && \
412+ fichiers=($1/*.${FROM})
413+ dialog --gauge "Conversion en cours, veuillez patienter..." 20 75 < <( # créé une barre de progres
414+ n=${#fichiers[*]}; i=0
415+ for fic in "${fichiers[@]}"; do
416+ ffmpeg -i "$fic" "$OPTMP3" "${fic%.${FROM}}.${TO}" >/dev/null 2>&1
417+ echo $((100*(++i)/n))
418+ done)
419+ ;;
420+ solo) testfic "$1" && \
421+ ffmpeg -i "$1" "$OPTMP3" "${1%.${FROM}}.${TO}"
422+ ;;
423+ *);;
424+ esac;;
425+ esac
426+ shift
427+done
428
429=== added file 'convto'
430--- convto 1970-01-01 00:00:00 +0000
431+++ convto 2009-03-21 03:44:44 +0000
432@@ -0,0 +1,136 @@
433+#!/bin/bash
434+#
435+# Auteur : Etienne Gadeski
436+# Adaptation : Jean-Michel Juzan
437+#
438+# This program is free software; you can redistribute it and/or modify
439+# it under the terms of the GNU General Public License as published by
440+# the Free Software Foundation; either version 2 of the License, or
441+# (at your option) any later version.
442+#
443+# This program is distributed in the hope that it will be useful,
444+# but WITHOUT ANY WARRANTY; without even the implied warranty of
445+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
446+# GNU General Public License for more details.
447+#
448+# You should have received a copy of the GNU General Public License
449+# along with this program; if not, write to the Free Software
450+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
451+# MA 02110-1301, USA.
452+#
453+# for i in *.wma; do ffmpeg -i "$i" -ab 256k "${i%wma}mp3"; done
454+#
455+usage="Usage: ${0##*/} [ OPTION ]...[ FICHIER | DESTINATION ]..."
456+aide="${usage}\
457+Convertir les fichiers mp3 en ogg et inversement\
458+ -r traitement récursif\
459+ ogg converti en ogg\
460+ mp3 converti en mp3\
461+ -h --help cette aide"
462+
463+# Fonctions
464+# Affiche les messages
465+getmsg() {
466+ echo ${msg}
467+ echo
468+}
469+
470+#---testdir effectue des test sur le dossier a traiter
471+testdir() {
472+ if [ ! -d "${rep}" ] ; then
473+ echo "${rep} n'est pas un répertoire"
474+ echo
475+ return 1
476+ elif [ ! -r "${rep}" ] ; then
477+ echo "${rep} n'est pas accessible en lecture"
478+ echo
479+ return 2
480+ elif [ ! -w "${rep}" ] ; then
481+ echo "${rep} n'est pas accessible en écriture"
482+ echo
483+ return 3
484+ else
485+ return 0
486+ fi
487+}
488+
489+#---testfic effectue des test sur le fichier a traiter
490+testfic() {
491+ if [ ! -f "${fic}" ] ; then
492+ echo "${fic} n'est pas un fichier valide"
493+ echo
494+ return 1
495+ elif [ ! -r "${fic}" ] ; then
496+ echo "${fic} n'est pas accessible en lecture"
497+ echo
498+ return 2
499+ elif [ ! -w "${PWD}" ] ; then
500+ echo "Ne peut ecrire dans ${PWD}"
501+ echo
502+ return 3
503+ else
504+ return 0
505+ fi
506+}
507+dofic() {
508+ testfic && \
509+ ffmpeg -i "${fic}" ${OPTMP3} "${fic%.${FROM}}.${TO}" #>/dev/null 2>&1
510+ return 0
511+}
512+
513+dorep() {
514+ rep=${1}
515+ testdir && \
516+ fichiers=("${rep}/"*.${FROM})
517+ # Barre de progression
518+ dialog --gauge "Conversion de ${rep} en cours, veuillez patienter..." 20 75 < <(
519+ n=${#fichiers[*]}
520+ if [ ! "${n}" ] ; then
521+ msg="Aucun fichier à traiter"
522+ getmsg
523+ return 1
524+ fi
525+ i=0
526+ for fic in "${fichiers[@]}"; do
527+ dofic
528+ echo $((100*(++i)/n))
529+ done
530+ #)
531+ return 0
532+}
533+
534+# main
535+# S'il n'y a pas de paramètre
536+[ "$#" -eq 0 ] && msg=$usage && getmsg && exit 1
537+MODE=solo
538+OPTMP3=""
539+
540+until [ "$#" -eq 0 ] ; do # tant qu'il y a des parametres
541+ case "$1" in
542+ ogg)
543+ FROM=mp3
544+ TO=ogg;;
545+ mp3) FROM=ogg
546+ OPTMP3="-ab 192k"
547+ TO=mp3;;
548+ -r) MODE=recursif;;
549+ -h|--help) msg=$aide
550+ getmsg;;
551+ *) if [ -f "${1}" ] ; then # Si c'est un fichier
552+ fic="${1}"
553+ dofic
554+ fi
555+ if [ -d "${1}" ] ; then # Si c'est un répertoire
556+ if [ ${MODE} = "recursif" ] ; then
557+ find "${1}" -type d | while read frep
558+ do
559+ dorep "${frep}"
560+ done
561+ else
562+ dorep "${1}"
563+ fi
564+ fi
565+ ;;
566+ esac
567+ shift
568+done
569
570=== added file 'convto.sh'
571--- convto.sh 1970-01-01 00:00:00 +0000
572+++ convto.sh 2009-03-21 03:44:44 +0000
573@@ -0,0 +1,230 @@
574+#!/bin/bash
575+#
576+# Auteur(s) :
577+#
578+# Maintenu par l'équipe ubuntu-fr-script
579+# https://launchpad.net/~ubuntu-fr-scripts
580+#
581+# This program is free software; you can redistribute it and/or modify
582+# it under the terms of the GNU General Public License as published by
583+# the Free Software Foundation; either version 2 of the License, or
584+# (at your option) any later version.
585+#
586+# This program is distributed in the hope that it will be useful,
587+# but WITHOUT ANY WARRANTY; without even the implied warranty of
588+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
589+# GNU General Public License for more details.
590+#
591+# You should have received a copy of the GNU General Public License
592+# along with this program; if not, write to the Free Software
593+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
594+# MA 02110-1301, USA.
595+#
596+
597+###############################################################################
598+# Variables
599+###############################################################################
600+# Commandes builtin
601+#------------------
602+CMD_EVAL="builtin eval"
603+CMD_EXIT="builtin exit"
604+
605+# Commandes UNIX standards
606+#------------------------
607+CMD_BASENAME="basename"
608+CMD_DIRNAME="dirname"
609+CMD_SED="sed"
610+CMD_GREP="grep"
611+
612+# Autres commandes
613+#----------------
614+CMD_PERL="perl"
615+
616+
617+CMD_PRINT_SHORT_HELP="$CMD_EVAL $CMD_PERL -e 'use Pod::Usage; pod2usage(-verbose=>0,-input=>\$ARGV[0])' `$CMD_BASENAME $0`"
618+CMD_PRINT_HELP="$CMD_EVAL $CMD_PERL -e 'use Pod::Usage; pod2usage(-verbose=>1,-input=>\$ARGV[0])' `$CMD_BASENAME $0`"
619+CMD_PRINT_MANPAGE="$CMD_EVAL $CMD_PERL -e 'use Pod::Usage; pod2usage(-verbose=>2,-input=>\$ARGV[0])' `$CMD_BASENAME $0`"
620+
621+# Vous pouvez ici ajouter vos variables
622+
623+###############################################################################
624+# Fonctions
625+###############################################################################
626+
627+#----------------------------------------------------------------------
628+# analyseLigneCommande
629+# analyse les paramètres de la ligne de commande
630+#
631+# entrée:
632+# - les paramètres de la ligne de commande à analyser
633+# note:
634+# - rien
635+# retour:
636+# - rien
637+#
638+#----------------------------------------------------------------------
639+function analyseLigneCommande()
640+{
641+ while getopts "hm" Option
642+ do
643+ case $Option in
644+ h ) $CMD_PRINT_HELP
645+ $CMD_EXIT
646+ ;;
647+ m ) $CMD_PRINT_MANPAGE
648+ $CMD_EXIT
649+ ;;
650+ * ) $CMD_PRINT_SHORT_HELP
651+ $CMD_EXIT 1
652+ ;;
653+ esac
654+ done
655+}
656+
657+# Vous pouvez ajouter ici vos fonctions
658+
659+###############################################################################
660+# MAIN
661+###############################################################################
662+analyseLigneCommande "$@"
663+
664+# Vous pouver ajouter ici le programme principal (main)
665+
666+
667+# Dans la section POD Ajouter les informations nécessaire à la création
668+# de la page de manuel et la page html
669+#
670+# POD section -----------------------------------------------------------------
671+
672+: <<=cut
673+
674+=pod
675+
676+=head1 NOM
677+
678+monscript.sh - Le programme fait ceci et cela...
679+
680+=head1 SYNOPSIS
681+
682+Un cours résumé de l'usage du script.
683+
684+B<monscript.sh> { B<ceci>|B<cela> } [ B<-flags> ] [ B<-o> I<option> ] I<argument> [ I<plus...> ]
685+
686+=head1 DESCRIPTION
687+
688+Longue description du script et de ses possibilités. C'est une bonne idée de diviser en sous chapître cette partie.
689+En utilisant "=head2" de cette manière
690+
691+=head2 Un exemple de sous chapître
692+
693+=head2 Un autre exemple de sous chapître
694+
695+Les références à propos de foo(1) (ou autre) page de manuel, peuvent être écrit normallement
696+comme ici; B<pod2man> Nous invitons à utiliser le bon format . Utilisez S<L><>
697+(e.g. L<foo(SECTION)>) si vous souhaitez forcer cela.
698+
699+Les paragraphes sont séparés par des lignes vide.
700+
701+=head1 OPTIONS
702+
703+Certaines personnes sépare ceci de la description.
704+
705+Le style suivant est le plus utilisé pour documenter les options:
706+
707+=over 8
708+
709+=item B<ceci>|B<cela>
710+
711+L'utilisateur doit explicitement spécifier B<ceci> ou B<cela> pour pouvoir exécuter le script.
712+Les accolades { et } indique que ce qui est à l'intérieur est requis. La barre | sépare des options exclusives.
713+(i.e. Vous ne pouvez pas avoir les deux à la fois).
714+
715+=item B<-o> I<option>
716+
717+Passe l'I<option> fournit par l'utilisateur à B<monscript.sh> pour changer son comportement.
718+Le fait que l'I<option> soit souligné ou en italique veut dire que l'utilisateur la remplace
719+par une valeur valide pour cette option. Les crochets [ et ] indique qu'elle n'est pas obligatoire.
720+
721+=item I<argument>
722+
723+Le dernier I<argument> est requis, parce qu'il n'est pas entre crochets.
724+
725+=item I<plus>
726+
727+indique que l'utilisateur peut optionnelement ajouter d'autre argument à la fin.
728+Les (...) indique qu'un ou plus the paramètre est autorisé.
729+
730+=back
731+
732+=head1 VALEUR DE RETOUR
733+
734+Ce que le script renvoie comme valeur en cas de succès.
735+
736+=head1 ERREURS
737+
738+Code de retours d'erreurs.
739+
740+=head1 EXEMPLES
741+
742+Donner quelques exemples d'utilisation du script.
743+
744+=head1 ENVIRONEMENT
745+
746+Des variables d'environement qui affecte le script.
747+
748+=head1 FICHIERS
749+
750+Tous les fichiers utilisés par le script. Un usage typique est comme ceci:
751+
752+=over 8
753+
754+=item F</usr/man>
755+
756+répertoire du man par défaut
757+
758+=item F</usr/man/man*/*.*>
759+
760+pages de man non formatées
761+
762+=back
763+
764+=head1 NOTES
765+
766+Des commentaires généraux.
767+
768+=head1 CAVEATS
769+
770+Des points auxquels il faut prêter attention, parfois appelé WARNINGS.
771+
772+=head1 DIAGNOSTICS
773+
774+Tous les messages d'erreurs possibles que le script peut afficher,
775+ce qu'ils veulent dire et comment les corriger si c'est possible.
776+
777+=head1 BUGS
778+
779+Des choses qui sont cassés ou qui ne fontionne pas bien.
780+
781+=head1 RESTRICTIONS
782+
783+Des bugs que vous ne planifiez pas de corriger :-)
784+
785+=head1 AUTEUR
786+
787+Qui l'a écrit (ou AUTEURS s'il y en a plusieurs)
788+
789+Cette exemple a été construit par Colin Watson <S<cjwatson@debian.org>>
790+sur un template fournit par Tom Christiansen <S<tchrist@jhereg.perl.com>>.
791+
792+=head1 HISTORIQUE
793+
794+Certain programmes dérivés d'autre sources ont parfois cette section.
795+
796+=head1 VOIR AUSSI
797+
798+D'autre pages man à voir, comme man(1), man(7), mandb(8), catman(8).
799+
800+Pour cette exemple, voir pod2man(1) pour plus de détails.
801+
802+=cut
803+
804
805=== added file 'm4a2mp3.sh'
806--- m4a2mp3.sh 1970-01-01 00:00:00 +0000
807+++ m4a2mp3.sh 2009-03-16 19:22:21 +0000
808@@ -0,0 +1,19 @@
809+#!/bin/bash
810+# m4a2mp3.sh - By pmd - http://pmdz.info
811+# But : Convertir des fichiers m4a/aac vers mp3
812+# Paquets requis : faad lame
813+# Licence : http://creativecommons.org/licenses/by-nc-sa/2.0/fr/
814+# Paternité - Pas d'Utilisation Commerciale - Partage des Conditions Initiales à l'Identique
815+
816+# Pour tous les fichiers se terminant par .m4a
817+for i in *.m4a
818+do
819+# m4a vers wav
820+faad "$i"
821+x=`echo "$i"|sed -e 's/.m4a/.wav/'`
822+y=`echo "$i"|sed -e 's/.m4a/.mp3/'`
823+# wav vers mp3
824+lame -h -b 192 "$x" "$y"
825+rm "$x"
826+rm "$i"
827+done
828
829=== added file 'mp3gainize'
830--- mp3gainize 1970-01-01 00:00:00 +0000
831+++ mp3gainize 2009-03-13 03:42:32 +0000
832@@ -0,0 +1,175 @@
833+#!/bin/bash
834+# $Id$
835+# Ce script demande un grand coup de balai !
836+
837+# Valeur par defaut :
838+dstdir="${HOME}/data/musique"
839+tmpdir="${HOME}/tmp"
840+suffix="mp3"
841+
842+debug=0
843+muet=0
844+bavard=0
845+recursif=0
846+type="solo"
847+typesrc=""
848+
849+############## FONCTIONS ################
850+
851+function gainonfile()
852+{
853+ test ${debug} -eq 1 && echo -e "gainonfile: Chemin de travail : ${PWD}"
854+ mp3gain -c "$1"
855+}
856+function gainondir()
857+{
858+ test ${debug} -eq 1 && echo -e "gainondir: Chemin de travail : ${PWD}"
859+ test ${debug} -eq 0 && echo -e "Chemin de travail : ${PWD}"
860+ mp3ici=`find . -type f -maxdepth 1 -iregex '.*\.[Mm][Pp]3'`
861+ test -z "${mp3ici}" && return
862+ mp3gain -c -a *.[Mm][Pp]3
863+}
864+function testdir()
865+{
866+ test ${debug} -eq 1 && echo -e "testdir: Verifie les droits du repertoire $1"
867+ wok=1 # Par defaut le repertoire doit etre en ecriture
868+ # Si nous ne pouvons pas ecrire en mode muet sortie
869+ test ${muet} -eq 1 && test ! -w "$1" && wok=0 &&
870+ echo -e "Impossible d'ecrire dans le repertoire $1" &&
871+ kdialog --passivepopup "Impossible d'ecrire dans le repertoire $1" 3 &&
872+ return
873+
874+ dstdir="$1"
875+ while test ! -w "${dstdir}"
876+ do
877+ kdialog --error "Vous n'avez pas le droit d'ecrire dans le repertoire ${dstdir}"
878+ dstdir=$(kdialog --title "Choisissez un autre repertoire" --getexistingdirectory $dstdir)
879+ test -z ${dstdir} && echo -e "Annulation de l'execution demandee ${dstdir}" && wok=0 && exit
880+ test ${debug} -eq 1 && echo -e "testdir: Chemin de travail choisi : ${dstdir}"
881+ done
882+ cd "${dstdir}"
883+}
884+function solo()
885+{
886+ find . -type f -maxdepth 1 -iregex '.*\.[Mm][Pp]3' | while read FICH
887+ do
888+ gainonfile "$FICH"
889+ done
890+}
891+function exectype()
892+{
893+ case "$type" in
894+ solo)
895+ test ${bavard} -eq 1 && echo -e "Traitement solo ${PWD}"
896+ solo;;
897+ album)
898+ test ${bavard} -eq 1 && echo -e "Traitement album ${PWD}"
899+ gainondir;;
900+ *) echo -e "Type ($type) inconnu, pas de traitement";;
901+ esac
902+
903+}
904+############## MAIN ################
905+
906+# S'il n'y a aucun parametre, sortie de la commande en invoquant l'affichage de l'aide
907+test -z "$1" && $0 -h && exit 1
908+lcparam="$@"
909+nbparam="$#"
910+#echo -e "$?"
911+#echo -e "$-"
912+cpid="$$"
913+#echo -e "$!"
914+
915+until [ -f "$1" ] || [ -d "$1" ]
916+do
917+ case "$1" in
918+ -muet)
919+ muet=1;;
920+ -debug)
921+ debug=1;;
922+ -t) shift;
923+ type="$1";;
924+ -h) echo -e "\nusage:\n
925+$0 [-muet -v] fichier_1 fichier_n
926+$0 [-muet -v -r] repertoire_1 repertoire_n
927+$0 [-muet -v -r -t album|solo ] repertoire_1 repertoire_n
928+
929+Formats possible en entree sont : mp3
930+Formats possible en sortie sont : mp3
931+";exit;;
932+ -v)
933+ bavard=1;;
934+ -r)
935+ recursif=1;;
936+ *) # Tout les parametres sont passes, ceux-ci devraient etre des fichiers ou dossiers
937+ if [ -f $1 ]
938+ then typesrc="f"
939+ elif [ -d $1 ]
940+ then typesrc="d"
941+ else
942+ echo -e "Ce n'est pas un fichier, ni un dossier, c'est quoi ce binz !!!"
943+ exit
944+ fi
945+ ;;
946+ esac
947+ shift
948+done
949+
950+# Lire les valeurs enregistrees
951+test ${bavard} -eq 1 && echo -e "Lecture des parametres : $(kde-config --localprefix)/share/config/mp3gainrc"
952+source "$(kde-config --localprefix)/share/config/mp3gainrc"
953+
954+# sauvegarde des variables seulement en mode normal
955+test $muet -eq 0 &&
956+(
957+test ${bavard} -eq 1 && echo -e "Enregistrement des parametres : $(kde-config --localprefix)/share/config/mp3gainrc"
958+echo "dstdir=${dstdir}" > $(kde-config --localprefix)/share/config/mp3gainrc
959+echo "tmpdir=${tmpdir}" >> $(kde-config --localprefix)/share/config/mp3gainrc
960+echo "suffix=${suffix}" >> $(kde-config --localprefix)/share/config/mp3gainrc
961+)
962+until [ -z "$1" ] # Tant qu'il y a des parametres...
963+do
964+ if [ -f "$1" ] # Fichiers
965+ then
966+ # MP3
967+ if [ "$(echo $1|sed 's/\.[Mm][Pp]3$//g')" != "$1" ]
968+ then
969+ gainonfile "$1"
970+ fi
971+ fi
972+
973+ if [ -d "$1" ] # Repertoire
974+ then
975+ cd "$1" # on se deplace dans le repertoire
976+ CDIR="$PWD"
977+ export EXTRABASE=$(basename "$PWD") # nom du repertoire sans le chemin
978+
979+ if [ $recursif = 0 ]
980+ then
981+ echo -e "Traitement (non recursif) de $PWD"
982+ testdir "$PWD"
983+ test $wok -eq 0 && echo -e "Impossible d'ecrire dans le repertoire : ${PWD}" && exit
984+ test ${bavard} -eq 1 && echo -e "chemin apres test ${dstdir}"
985+ exectype
986+
987+ else
988+ echo -e "Traitement (recursif) de $PWD"
989+ find . -type d | while read DICH # Cherche tout les sous-repertoires
990+ do # debut de la recursion dans le repertoire
991+ curdir="${CDIR}/${DICH}"
992+ test ${bavard} -eq 1 && echo -e "Lancemment de mp3gain sur ${curdir}"
993+ testdir "${curdir}"
994+ test $wok -eq 0 && echo -e "Impossible d'ecrire dans le repertoire : $PWD" && exit
995+ test ${bavard} -eq 1 && echo -e "chemin apres testdir $dstdir"
996+ exectype
997+ done
998+ fi
999+
1000+ fi
1001+shift
1002+done
1003+test ${bavard} -eq 1 && echo -e "mp3gain termine (PPID:${PPID} PID:${cpid}) en ${SECONDS}s !\n"
1004+test ${bavard} -eq 0 && echo -e "mp3gain termine!\n"
1005+test $muet -eq 0 && kdialog --msgbox "mp3gain termine (PID:${cpid}) en ${SECONDS}s !"
1006+test $muet -eq 1 && kdialog --passivepopup "mp3gain termine (PID:${cpid}) en ${SECONDS}s !" 3 &
1007+exit
1008
1009=== added file 'mpc2mp3.sh'
1010--- mpc2mp3.sh 1970-01-01 00:00:00 +0000
1011+++ mpc2mp3.sh 2009-03-16 19:22:21 +0000
1012@@ -0,0 +1,19 @@
1013+#!/bin/bash
1014+# mpc2mp3.sh - By pmd - http://pmdz.info
1015+# But : Convertir des fichiers mpc vers mp3
1016+# Paquets requis : mpc123 lame
1017+# Licence : http://creativecommons.org/licenses/by-nc-sa/2.0/fr/
1018+# Paternité - Pas d'Utilisation Commerciale - Partage des Conditions Initiales à l'Identique
1019+
1020+# Pour tous les fichiers se terminant par .mpc
1021+for i in *.mpc
1022+do
1023+# mpc vers wav
1024+x=`echo "$i"|sed -e 's/.mpc/.wav/'`
1025+mpc123 -w "$x" "$i"
1026+y=`echo "$i"|sed -e 's/.mpc/.mp3/'`
1027+# wav vers mp3
1028+lame -h -b 192 "$x" "$y"
1029+rm "$x"
1030+rm "$i"
1031+done
1032
1033=== added file 'ogg2mp3.sh'
1034--- ogg2mp3.sh 1970-01-01 00:00:00 +0000
1035+++ ogg2mp3.sh 2009-03-16 19:22:21 +0000
1036@@ -0,0 +1,19 @@
1037+#!/bin/bash
1038+# ogg2mp3.sh - By pmd - http://pmdz.info
1039+# But : Convertir des fichiers ogg vers mp3
1040+# Paquets requis : vorbis-tools lame
1041+# Licence : http://creativecommons.org/licenses/by-nc-sa/2.0/fr/
1042+# Paternité - Pas d'Utilisation Commerciale - Partage des Conditions Initiales à l'Identique
1043+
1044+# Pour tous les fichiers se terminant par .ogg
1045+for i in *.ogg;
1046+do
1047+# ogg vers wav
1048+x=`echo "$i"|sed -e 's/.ogg/.wav/'`
1049+y=`echo "$i"|sed -e 's/.ogg/.mp3/'`
1050+oggdec -o "$x" "$i"
1051+# wav vers mp3
1052+lame -h -b 192 "$x" "$y"
1053+rm "$x"
1054+rm "$i"
1055+done
1056
1057=== added file 'playdir'
1058--- playdir 1970-01-01 00:00:00 +0000
1059+++ playdir 2009-03-13 05:36:10 +0000
1060@@ -0,0 +1,22 @@
1061+#!/bin/bash
1062+#
1063+# Auteur : Juzan Jean-Michel
1064+#
1065+# This program is free software; you can redistribute it and/or modify
1066+# it under the terms of the GNU General Public License as published by
1067+# the Free Software Foundation; either version 2 of the License, or
1068+# (at your option) any later version.
1069+#
1070+# This program is distributed in the hope that it will be useful,
1071+# but WITHOUT ANY WARRANTY; without even the implied warranty of
1072+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1073+# GNU General Public License for more details.
1074+#
1075+# You should have received a copy of the GNU General Public License
1076+# along with this program; if not, write to the Free Software
1077+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
1078+# MA 02110-1301, USA.
1079+#
1080+# Joue l'un parès l'autre tous les fichiers mp3 du repertoire
1081+#
1082+for i in *.mp3 do ; play "$i" ; done
1083
1084=== added file 'wma2mp3.sh'
1085--- wma2mp3.sh 1970-01-01 00:00:00 +0000
1086+++ wma2mp3.sh 2009-03-16 19:22:21 +0000
1087@@ -0,0 +1,19 @@
1088+#!/bin/bash
1089+# wma2mp3.sh - By pmd - http://pmdz.info
1090+# But : Convertir des fichiers wma vers mp3
1091+# Paquets requis : mplayer lame
1092+# Licence : http://creativecommons.org/licenses/by-nc-sa/2.0/fr/
1093+# Paternité - Pas d'Utilisation Commerciale - Partage des Conditions Initiales à l'Identique
1094+
1095+# Pour tous les fichiers se terminant par .wma
1096+for i in *.wma;
1097+do
1098+# m4a vers wav
1099+x=`echo "$i"|sed -e 's/.wma/.wav/'`
1100+y=`echo "$i"|sed -e 's/.wma/.mp3/'`
1101+mplayer "$i" -ao pcm:file="$x";
1102+# wav vers mp3
1103+lame -h -b 192 "$x" "$y"
1104+rm "$x"
1105+rm "$i"
1106+done

Subscribers

People subscribed via source and target branches

to all changes: