commit f24ee9cf950b4a3dbd3269c03f6f0971cd3f26f5 parent 2ebf5202f711ab8827f45dd72fd8b5d45ecc48c2 Author: E.A.Bekhtenev <E.A.Bekhtenev@inp.nsk.su> Date: Wed Oct 25 10:29:47 +0700 update Diffstat:
index.md | | | 1 | + |
update.md | | | 41 | +++++++++++++++++++++++++++++++++++++++++ |
diff --git a/index.md b/index.md @@ -20,6 +20,7 @@ Title: Система измерения положения пучка ВЭПП4 1. [установка библиотеки EPICS](epics) 1. [Броадкасты](broadcast) 1. [https error](https_error) +1. [update](update) ### История изменений[history] diff --git a/update.md b/update.md @@ -0,0 +1,41 @@ +Title: Update OPI +CSS: table.css + +[TOP](index) + +{{TOC}} + +# Обновление opi файлов + +Чтобы держать *opi* файлы в актуальном состоянии в директорию +с ними поместить скрипт для обновления всего. + +## linux + +```sh +#!/bin/bash + +for i in *-opi *-orbit; do + pushd $i; + git status -s; + git pull; + [ -e .gitmodules ] && git submodule update + popd; +done +``` + +## windows + +```cmd +@REM Do not use "echo off" to not affect any child calls. + +@FOR /d %%a IN (*-opi *-orbit) DO @( + ECHO %%a + PUSHD %%a + git status + git pull + @FOR %%b IN (.gitmodules) DO @git submodule update + POPD +) +``` +