Move build system tools to separate directory

Separate tools used internally by build system from utilities that are
part of Open CAS installation package.

Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
This commit is contained in:
Robert Baldyga 2021-03-19 13:35:54 +01:00
parent feaafdfe06
commit e58dae02ac
17 changed files with 12 additions and 12 deletions

View File

@ -27,16 +27,16 @@ endif
endif endif
archives: archives:
@utils/pckgen $(PWD) tar zip @tools/pckgen $(PWD) tar zip
rpm: rpm:
@utils/pckgen $(PWD) rpm --debug @tools/pckgen $(PWD) rpm --debug
srpm: srpm:
@utils/pckgen $(PWD) srpm --debug @tools/pckgen $(PWD) srpm --debug
deb: deb:
@utils/pckgen $(PWD) deb @tools/pckgen $(PWD) deb
dsc: dsc:
@utils/pckgen $(PWD) dsc @tools/pckgen $(PWD) dsc

2
configure vendored
View File

@ -79,7 +79,7 @@ fi
# Run version generator with 'build' flag to # Run version generator with 'build' flag to
# indicate that we are in the build process # indicate that we are in the build process
(cd utils && ./cas_version_gen build) (cd tools && ./cas_version_gen build)
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo "Error: failed to obtain CAS version" >&2 echo "Error: failed to obtain CAS version" >&2
exit 1 exit 1

View File

@ -515,7 +515,7 @@ DEB_BUILD_DIR="$TEMP_DIR/debuild"
# Version file location: # Version file location:
VERSION_FILE="$SOURCES_DIR/.metadata/cas_version" VERSION_FILE="$SOURCES_DIR/.metadata/cas_version"
# CAS version generator location: # CAS version generator location:
CAS_VERSION_GEN="$SOURCES_DIR/utils/cas_version_gen" CAS_VERSION_GEN="$SOURCES_DIR/tools/cas_version_gen"
check_version check_version

View File

@ -70,11 +70,11 @@ endif
uninstall: uninstall:
@echo "Uninstalling Open-CAS utils" @echo "Uninstalling Open-CAS utils"
@rm $(DESTDIR)/etc/opencas/opencas.conf @rm $(DESTDIR)/etc/opencas/opencas.conf
@rm $(DESTDIR)/etc/opencas/ioclass-config.csv @rm $(DESTDIR)/etc/opencas/ioclass-config.csv
@rm -rf $(DESTDIR)/etc/opencas @rm -rf $(DESTDIR)/etc/opencas
@rm $(DESTDIR)/var/lib/opencas/cas_version @rm $(DESTDIR)/var/lib/opencas/cas_version
@rm -rf $(DESTDIR)/var/lib/opencas @rm -rf $(DESTDIR)/var/lib/opencas
@rm $(DESTDIR)/usr/share/man/man5/opencas.conf.5 @rm $(DESTDIR)/usr/share/man/man5/opencas.conf.5
@rm $(DESTDIR)$(CASCTL_DIR)/opencas.py @rm $(DESTDIR)$(CASCTL_DIR)/opencas.py