diff options
| author | Remi Collet <remi@remirepo.net> | 2023-09-13 13:59:21 +0200 |
|---|---|---|
| committer | Remi Collet <remi@php.net> | 2023-09-13 13:59:21 +0200 |
| commit | 6914c0dca7ae23c2bfbdb00f971c0ae1d8e902f7 (patch) | |
| tree | d444631c60eb14af2967d70d324df48ec6a6dcaa /pearup | |
| parent | f20a7d3dc23829901c40f28c06064a3fe7b8381e (diff) | |
aarch64 helpers
Diffstat (limited to 'pearup')
| -rwxr-xr-x | pearup | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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" |
