diff --git a/README.md b/README.md index 42aa52e..ba44ba3 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,15 @@ # Description The tools that are used to display a custom composable motd on login in SCITAS clusters. # Build RPM Recipe to build the RPM, the tag with the version number must exist! ```bash export VERSION=0.1 export TOPDIR="$(pwd)/rpmbuild" rm -rf "${TOPDIR}" -mkdir -p "${TOPDIR}/{BUILD,BUILDROOT,RPMS,SOURCES,SPECS,SRPMS}" -git archive --prefix=scitas-motd-scripts-$VERSION/ -o $TOPDIR/SOURCES/scitas-motd-scripts-$VERSION.tar.gz $VERSION +mkdir -p "${TOPDIR}"/{BUILD,BUILDROOT,RPMS,SOURCES,SPECS,SRPMS} +git archive --prefix=scitas-motd-scripts-$(echo $VERSION | cut -f 1 -d -)/ -o $TOPDIR/SOURCES/scitas-motd-scripts-$(echo $VERSION | cut -f 1 -d -).tar.gz $VERSION cp scitas-motd-scripts.spec $TOPDIR/SPECS/ rpmbuild --define "_topdir $TOPDIR" -bb $TOPDIR/SPECS/scitas-motd-scripts.spec ```