diff --git a/.gitignore b/.gitignore index 43c2bef..47af639 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ etc/scitas-motd.conf.local .*.swp +rpmbuild/ diff --git a/README.md b/README.md index 8bea27d..42aa52e 100644 --- a/README.md +++ b/README.md @@ -1,14 +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" -mkdir -p $TOPDIR/{BUILD,BUILDROOT,RPMS,SOURCES,SPECS,SRPMS} +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 cp scitas-motd-scripts.spec $TOPDIR/SPECS/ rpmbuild --define "_topdir $TOPDIR" -bb $TOPDIR/SPECS/scitas-motd-scripts.spec ```