Rev 327 | Rev 597 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
327 | daniel-mar | 1 | #!/bin/bash |
2 | |||
511 | daniel-mar | 3 | # OIDplus 2.0 |
4 | # Copyright 2019 - 2021 Daniel Marschall, ViaThinkSoft |
||
5 | # |
||
6 | # Licensed under the Apache License, Version 2.0 (the "License"); |
||
7 | # you may not use this file except in compliance with the License. |
||
8 | # You may obtain a copy of the License at |
||
9 | # |
||
10 | # http://www.apache.org/licenses/LICENSE-2.0 |
||
11 | # |
||
12 | # Unless required by applicable law or agreed to in writing, software |
||
13 | # distributed under the License is distributed on an "AS IS" BASIS, |
||
14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||
15 | # See the License for the specific language governing permissions and |
||
16 | # limitations under the License. |
||
17 | |||
327 | daniel-mar | 18 | DIR=$( dirname "$1" ) |
19 | |||
20 | # 1. Convert everything to DOS except ".svn" and "3p" |
||
21 | cd "$DIR"/.. |
||
22 | mv ".svn" ../_svn |
||
23 | mv "3p" ../_3p |
||
24 | find . -type f -exec unix2dos {} \; |
||
25 | mv ../_svn ".svn" |
||
26 | mv ../_3p "3p" |
||
27 | |||
28 | # 2. Convert Linux shell script back to Unix format |
||
29 | dos2unix plugins/publicPages/100_whois/whois/cli/whois |
||
30 | |||
31 | cd dev |
||
32 | find . -type f -exec dos2unix {} \; |
||
33 | |||
34 | # 3. But this single PHP file in "dev/test" can be DOS |
||
35 | cd test |
||
36 | unix2dos test_database_plugins.php |