git.annexia.org
/
fedora-mingw.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LOCALREPO and ARCHES are now specified externally.
[fedora-mingw.git]
/
smock
/
smock.sh
diff --git
a/smock/smock.sh
b/smock/smock.sh
index
278a85d
..
013aa3e
100755
(executable)
--- a/
smock/smock.sh
+++ b/
smock/smock.sh
@@
-1,9
+1,10
@@
#!/bin/sh
#!/bin/sh
-
-LOCALREPO=$HOME/public_html/smock/yum
-ARCHES="i386 x86_64"
-#ARCHES="i386"
+if [ -z "$LOCALREPO" -o -z "$ARCHES" ]; then
+ echo '$LOCALREPO must point to local repository'
+ echo '$ARCHES must contain list of architectures to build'
+ exit 1
+fi
help() {
echo "syntax: $0 DIST SRPM"
help() {
echo "syntax: $0 DIST SRPM"
@@
-57,7
+58,7
@@
do
if [ $? != 0 ]; then
echo "Build failed, leaving logs in $LOCALREPO/scratch"
if [ $? != 0 ]; then
echo "Build failed, leaving logs in $LOCALREPO/scratch"
- exit
$?
+ exit
1
fi
mv $LOCALREPO/scratch/*.src.rpm $LOCALREPO/$DIST/src/SRPMS
mv $LOCALREPO/scratch/*.rpm $LOCALREPO/$DIST/$ARCH/RPMS
fi
mv $LOCALREPO/scratch/*.src.rpm $LOCALREPO/$DIST/src/SRPMS
mv $LOCALREPO/scratch/*.rpm $LOCALREPO/$DIST/$ARCH/RPMS