Rev 597 | 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 | |||
597 | daniel-mar | 20 | # 1. Convert everything to DOS except ".svn" and "vendor" |
327 | daniel-mar | 21 | cd "$DIR"/.. |
22 | mv ".svn" ../_svn |
||
597 | daniel-mar | 23 | mv "vendor" ../_vendor |
327 | daniel-mar | 24 | find . -type f -exec unix2dos {} \; |
25 | mv ../_svn ".svn" |
||
597 | daniel-mar | 26 | mv ../_vendor "vendor" |
327 | daniel-mar | 27 | |
28 | # 2. Convert Linux shell script back to Unix format |
||
635 | daniel-mar | 29 | dos2unix plugins/viathinksoft/publicPages/100_whois/whois/cli/whois |
327 | daniel-mar | 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 |