This repository has been archived on 2020-01-17. You can view files and clone it, but cannot push or open issues or pull requests.
2018-04-19 10:35:41 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
|
|
|
|
changesFile="/tmp/vn-repo.changes"
|
|
|
|
|
|
|
|
(
|
|
|
|
flock -n 200 || exit
|
|
|
|
|
2018-05-02 06:32:19 +00:00
|
|
|
if [ -f "$changesFile" ]; then
|
|
|
|
while read -r line; do
|
2018-04-19 10:35:41 +00:00
|
|
|
projectName=$(echo $line | cut -d" " -f1)
|
|
|
|
branch=$(echo $line | cut -d" " -f2)
|
|
|
|
|
|
|
|
vn-branch $projectName
|
|
|
|
done < "$changesFile"
|
|
|
|
|
|
|
|
rm $changesFile
|
|
|
|
fi
|
|
|
|
) 200> /var/lock/vn-repo.lock
|