summaryrefslogtreecommitdiffstats
path: root/mockit
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2023-09-13 15:19:39 +0200
committerRemi Collet <remi@php.net>2023-09-13 15:19:39 +0200
commitac879a65ab3c768af2f269fd426041affdc78f4d (patch)
tree9e40a608012b15c2e1108157ba666d7b4f0cf5f0 /mockit
parent46c009394b5616f4a212c4ae0aa5551513f6625d (diff)
fix local paths
Diffstat (limited to 'mockit')
-rwxr-xr-xmockit12
1 files changed, 10 insertions, 2 deletions
diff --git a/mockit b/mockit
index 2bccf95..bd740a2 100755
--- a/mockit
+++ b/mockit
@@ -34,8 +34,16 @@ else
shift
fi
-mocketc=/home/rpmbuild/SPECS/remirepo/tools/mock
-srpmdir=/home/rpmbuild/site/rpms
+case $DIST in
+ *x)
+ mocketc=/home/rpmbuild/SPECS/remirepo/tools/mock
+ srpmdir=/home/rpmbuild/site/rpms/SRPMS
+ ;;
+ *a)
+ mocketc=/home/remi/mock
+ srpmdir=/home/remi/SRPMS
+ ;;
+esac
if [ -f $srpmdir/$SRPM ]; then
SRPM=$srpmdir/$SRPM