blob: cf489e86a95a8c46cf712fbf24ffea025fe27d29 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/bin/rc
repodir = `$nl{git rev-parse --show-toplevel}
if (!~ $status 0) {
exit $status
}
reponame = `$nl{basename $repodir}
cmds = `$nl{hhvn.uk/repo/mkrepo $reponame}
# ignore $status here, as it will fail if repo
# already exists, but we still want those cmds...
# instead, use this sanity check to check for failure
if (!~ `{echo $cmds | grep -Eo '^git| git ' | wc -l} 2) {
exit 1
}
for (cmd in $cmds) {
echo RC -c $^cmd
rc -c $^cmd
}
|