summaryrefslogtreecommitdiffstats
path: root/pearup
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2023-09-13 13:59:21 +0200
committerRemi Collet <remi@php.net>2023-09-13 13:59:21 +0200
commit6914c0dca7ae23c2bfbdb00f971c0ae1d8e902f7 (patch)
treed444631c60eb14af2967d70d324df48ec6a6dcaa /pearup
parentf20a7d3dc23829901c40f28c06064a3fe7b8381e (diff)
aarch64 helpers
Diffstat (limited to 'pearup')
-rwxr-xr-xpearup8
1 files changed, 7 insertions, 1 deletions
diff --git a/pearup b/pearup
index 85c913f..b4a023c 100755
--- a/pearup
+++ b/pearup
@@ -5,7 +5,7 @@ rpmdate=$(LC_ALL="C" date +"%a %b %d %Y")
rpmdate=${rpmdate/ 0/ }
if [ $# -lt 2 ]; then
- echo "usage $0 old new [ spec ]"
+ echo "usage $0 old new [ spec ] [ oldsuffix newsuffix ]"
exit 1
fi
if [ -n "$3" ]; then
@@ -14,6 +14,12 @@ else
name=$(basename $PWD).spec
fi
+if [ ! -f $3 ]; then
+ echo "cannot read '$3' spec file"
+ echo "usage $0 old new [ spec ] [ oldsuffix newsuffix ]"
+ exit 1
+fi
+
oldver="$1"
newver="$2"
rpmver="$2"