Skip to content
Snippets Groups Projects
Commit 5717fd6f authored by Andrew Lee (李健秋)'s avatar Andrew Lee (李健秋)
Browse files

Imported Upstream version 2.7.1

parent a32ee833
No related branches found
No related tags found
No related merge requests found
<directory>
<entry name="test.txt"/>
<entry name="file2"/>
<entry name="file3"/>
</directory>
# This file is needed to keep the directory
*
# This file is needed to keep the directory
# This file is needed to keep the directory
# This file is needed to keep the directory
include ../../Makefile.include
OBS_BACKEND_DATA_SUBDIRS := build events info jobs log projects repos run sources trees workers
OBS_BACKEND_DATA_DIR := /srv/obs
prepare_dirs:
$(INSTALL) -d -m 755 $(DESTDIR)$(OBS_BACKEND_PREFIX)
$(INSTALL) -d -m 755 $(DESTDIR)$(OBS_BACKEND_DATA_DIR)
bs_config:
[ -f ./BSConfig.pm ] || cp ./BSConfig.pm.template ./BSConfig.pm
install: prepare_dirs install_data_dirs bs_config
# prevent error while copy if there is an previous installation
rm -rf $(DESTDIR)$(OBS_BACKEND_PREFIX)/build
cp -a ./* $(DESTDIR)$(OBS_BACKEND_PREFIX)
rm -rf $(DESTDIR)$(OBS_BACKEND_PREFIX)/Makefile
rm -rf $(DESTDIR)$(OBS_BACKEND_PREFIX)/t
rm -rf $(DESTDIR)$(OBS_BACKEND_PREFIX)/testdata
rm -rf $(DESTDIR)$(OBS_BACKEND_PREFIX)/examples
# just for check section, it is a %%ghost
ln -sf /usr/lib/build $(DESTDIR)$(OBS_BACKEND_PREFIX)/build
install_data_dirs: prepare_dirs
$(foreach data_dir,$(OBS_BACKEND_DATA_SUBDIRS), \
$(shell $(INSTALL) -d -m 755 $(DESTDIR)$(OBS_BACKEND_DATA_DIR)/$(data_dir) ) \
)
test_unit: bs_config clean_cover
rm -rf t/tmp/*
PERL5OPT=-MDevel::Cover LANG=C prove -Ibuild -I. -v t/*.t
cover: test_unit
cover -ignore_re '^((build|XML|t)/|/usr/bin/prove$$)' -outputdir /srv/www/htdocs
clean_cover:
rm -rf cover_db/
.PHONY: test_unit cover
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment