Changeset 58387 in vbox for trunk/src/VBox
- Timestamp:
- Oct 23, 2015 11:07:48 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/linux/rpm/rules
r58186 r58387 84 84 ifeq ($(rpmrel),) 85 85 # look for fedora 86 rpmrel := $(shell cat /etc/fedora-release | sed -e 's/^Fedora *release *\([1-9][0-9]*\) .*/fedora\1/')86 rpmrel := $(shell cat /etc/fedora-release 2> /dev/null | sed -e 's/^Fedora *release *\([1-9][0-9]*\) .*/fedora\1/') 87 87 endif 88 88 ifeq ($(rpmrel),) 89 89 # look for OL 90 rpmrel := $(shell cat /etc/enterprise-release | sed -ne 's/^Enterprise Linux[a-zA-Z ]*\([1-9][0-9]*\).*/ol\1/p')90 rpmrel := $(shell cat /etc/enterprise-release 2> /dev/null | sed -ne 's/^Enterprise Linux[a-zA-Z ]*\([1-9][0-9]*\).*/ol\1/p') 91 91 endif 92 92 ifeq ($(rpmrel),) 93 93 # look for CentOS 94 rpmrel := $(shell cat /etc/redhat-release | sed -ne 's/^CentOS[a-zA-Z ]*\([1-9][0-9]*\).*/centos\1/p')94 rpmrel := $(shell cat /etc/redhat-release 2> /dev/null | sed -ne 's/^CentOS[a-zA-Z ]*\([1-9][0-9]*\).*/centos\1/p') 95 95 endif 96 96 ifeq ($(rpmrel),) 97 97 # look for Red Hat 98 rpmrel := $(shell cat /etc/redhat-release | sed -ne 's/^Red Hat[a-zA-Z ]*\([1-9][0-9]*\).*/centos\1/p')98 rpmrel := $(shell cat /etc/redhat-release 2> /dev/null | sed -ne 's/^Red Hat[a-zA-Z ]*\([1-9][0-9]*\).*/centos\1/p') 99 99 endif 100 100 ifeq ($(rpmrel),) … … 239 239 -e "s|%WEBSVC%|$(if $(NOWEBSVC),false,true)|g" \ 240 240 rpm/VirtualBox.tmpl.spec > $(archdir)/VirtualBox.spec 241 cp vboxdrv.sh $(archdir)242 cp vboxballoonctrl-service.sh $(archdir)243 cp vboxautostart-service.sh $(archdir)244 cp vboxweb-service.sh $(archdir)245 cp VBox.sh $(archdir)246 241 mv rpm/VirtualBox-$(ver) rpm/$(rpmname) 247 242 tar -cf rpm/VirtualBox.tar -C rpm $(rpmname)
Note:
See TracChangeset
for help on using the changeset viewer.