Last change
on this file since 1210 was 1210, checked in by joergs, on Apr 12, 2016 at 4:58:03 PM |
make mirror script more flexible.
Use configuration files and helper scripts.
|
-
Property svn:executable
set to
*
|
File size:
416 bytes
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | set -o errexit -o nounset
|
---|
4 |
|
---|
5 | DEST="${1:-}"
|
---|
6 |
|
---|
7 | if ! [ -d "$DEST" ]; then
|
---|
8 | echo "FAILED: no directory given."
|
---|
9 | exit
|
---|
10 | fi
|
---|
11 |
|
---|
12 | # adapt repository sources
|
---|
13 | for i in `find $DEST -name "*.repo" -a ! -name "vermkv-*.repo"`; do
|
---|
14 | basename=`basename $i`
|
---|
15 | dirname=`dirname $i`
|
---|
16 | echo "creating $dirname/vermkv-$basename"
|
---|
17 | sed "s|http://|http://install.vermkv/freigabe/|" $i > $dirname/vermkv-$basename
|
---|
18 | done
|
---|
Note:
See
TracBrowser
for help on using the repository browser.