diff options
author | Harald Hoyer <harald@redhat.com> | 2013-06-28 10:31:18 +0200 |
---|---|---|
committer | Harald Hoyer <harald@redhat.com> | 2013-06-28 10:31:18 +0200 |
commit | 32bd2fbb4c8f1d3e1951d75f32c080d4b42c49a4 (patch) | |
tree | 77496ecfc6b5a08e5b61e7a892185e319d4f7a4d /Makefile | |
parent | 1d84d6940e5242220bc478647c56aae02c4263d3 (diff) | |
download | dracut-32bd2fbb4c8f1d3e1951d75f32c080d4b42c49a4.tar.gz dracut-32bd2fbb4c8f1d3e1951d75f32c080d4b42c49a4.tar.bz2 dracut-32bd2fbb4c8f1d3e1951d75f32c080d4b42c49a4.zip |
use "rm --" to guard against filenames beginning with "-"
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -82,7 +82,7 @@ dracut.html: dracut.asc $(manpages) --stringparam html.stylesheet \ http://docs.fedoraproject.org/en-US/Common_Content/css/default.css \ http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl dracut.xml - rm dracut.xml + rm -f -- dracut.xml install: dracut-version.sh mkdir -p $(DESTDIR)$(pkglibdir) @@ -164,9 +164,9 @@ dracut-$(VERSION).tar.bz2: doc mkdir -p dracut-$(VERSION) for i in $(manpages) dracut.html dracut-version.sh; do [ "$${i%/*}" != "$$i" ] && mkdir -p "dracut-$(VERSION)/$${i%/*}"; cp "$$i" "dracut-$(VERSION)/$$i"; done tar --owner=root --group=root -rf dracut-$(VERSION).tar $$(find dracut-$(VERSION) -type f) - rm -fr dracut-$(VERSION).tar.bz2 dracut-$(VERSION) + rm -fr -- dracut-$(VERSION).tar.bz2 dracut-$(VERSION) bzip2 -9 dracut-$(VERSION).tar - rm -f dracut-$(VERSION).tar + rm -f -- dracut-$(VERSION).tar rpm: dracut-$(VERSION).tar.bz2 rpmbuild=$$(mktemp -d -t rpmbuild-dracut.XXXXXX); src=$$(pwd); \ @@ -175,7 +175,7 @@ rpm: dracut-$(VERSION).tar.bz2 (cd "$$rpmbuild"; rpmbuild --define "_topdir $$PWD" --define "_sourcedir $$PWD" \ --define "_specdir $$PWD" --define "_srcrpmdir $$PWD" \ --define "_rpmdir $$PWD" -ba dracut.spec; ) && \ - ( mv "$$rpmbuild"/$$(arch)/*.rpm .; mv "$$rpmbuild"/*.src.rpm .;rm -fr "$$rpmbuild"; ls *.rpm ) + ( mv "$$rpmbuild"/$$(arch)/*.rpm .; mv "$$rpmbuild"/*.src.rpm .;rm -fr -- "$$rpmbuild"; ls *.rpm ) syncheck: @ret=0;for i in dracut-initramfs-restore.sh modules.d/*/*.sh; do \ |