-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3b313f5
commit ed216f8
Showing
6 changed files
with
66 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,6 @@ | |
# along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
|
||
[email protected]:/var/www/html/spinorama-prod | ||
[email protected]:/var/www/html/spinorama-prod | ||
[email protected]:/var/www/html/spinorama-prod | ||
[email protected]:/var/www/html/spinorama-prod | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#!/bin/sh | ||
# A library to display spinorama charts | ||
# | ||
# Copyright (C) 2020-2024 Pierre Aubert pierre(at)spinorama(dot)org | ||
# | ||
# This program is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation, either version 3 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
|
||
[email protected]:/var/www/html/spinorama-prod | ||
|
||
# check | ||
command=$(grep dev.spinorama.org docs/*.html | wc -l) | ||
if [ "${command}" -ne 0 ]; then | ||
echo "KO found DEV url in PROD site" | ||
exit 1; | ||
else | ||
echo "OK checking for DEV site in PROD" | ||
fi | ||
command=$(grep spinorama.internet-box.ch docs/*.html | wc -l) | ||
if [ "${command}" -ne 0 ]; then | ||
echo "KO found old dev url in prod site" | ||
exit 1; | ||
else | ||
echo "OK checking for dev site in prod" | ||
fi | ||
|
||
# copy | ||
echo "Sync starts:" | ||
for target in "$TARGET2"; do | ||
rsync -avrz --exclude '*.png' --delete ./docs/* "$target" | ||
rsync -arvz --include '*.png' --delete ./docs/pictures/* "$target/pictures" | ||
rsync -arvz --include '*.png' --delete ./docs/help_pictures/* "$target/help_pictures" | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters