File: repotool-initialize-cvs-git.sh

package info (click to toggle)
reposurgeon 4.38-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 23,500 kB
  • sloc: sh: 4,832; makefile: 514; python: 485; lisp: 115; awk: 91; ruby: 19
file content (24 lines) | stat: -rw-r--r-- 511 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh
## Test repotool initialize, cvs->git

mkdir /tmp/test-workdir$$
cd /tmp/test-workdir$$ || ( echo "$0: cd failed"; exit 1 )
${REPOTOOL:-repotool} initialize xyzzy cvs git >/tmp/out$$
echo Return code: $? >>/tmp/out$$
# shellcheck disable=2064
cd - >/dev/null || ( echo "$0: cd failed"; exit 1 )
./dir-md5 /tmp/test-workdir$$ >>/tmp/out$$

# shellcheck disable=SC1091
. ./common-setup.sh
toolmeta "$1" /tmp/out$$

st=$?
if [ $st -eq 0 ]; then
	rm -rf /tmp/test-workdir$$ /tmp/out$$
fi

exit $st

#end