From: Mikko Rasa Date: Sat, 19 Jul 2008 23:51:39 +0000 (+0000) Subject: Rename the library as mspfs X-Git-Tag: fs-1.0~6 X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=e6fec68039fb5212993d687d352c540e407e6d96;p=libs%2Fcore.git Rename the library as mspfs Remove obsolete files --- diff --git a/Build b/Build index 0449059..831a5df 100644 --- a/Build +++ b/Build @@ -1,16 +1,16 @@ /* $Id$ */ -package "msppath" +package "mspfs" { version "0.1"; description "Filesystem utilities"; require "mspstrings"; - library "msppath" + library "mspfs" { source "source"; install true; - install_headers "msp/path"; + install_headers "msp/fs"; }; }; diff --git a/Makefile b/Makefile deleted file mode 100644 index 8396a66..0000000 --- a/Makefile +++ /dev/null @@ -1,84 +0,0 @@ -NAME = path - -WORKDIR = $(PWD)/../.. -TMP = $(WORKDIR)/tmp/linux -TGT = $(HOME)/local - -CXX = g++ -CC = gcc -AR = ar -CP = cp - -LIBFILE = libmsp$(NAME) - -MAKEFLAGS += -s --no-print-directory -INCLUDE = -Isource -I$(TMP)/include -LIB = -L$(TMP) -DEBUG = -CFLAGS = $(DEBUG) $(INCLUDE) -pipe -Wall -CXXFLAGS = $(CFLAGS) - -PIC = -fPIC -SHARED = .so -STATIC = .a - -SRC = source -OBJS = $(addprefix $(TMP)/, $(addsuffix .o, $(notdir $(basename $(wildcard $(SRC)/*.cpp))))) - -pkgincludedir = include/msp/$(NAME) -libdir = lib - -.PHONY: all -all: $(TMP) $(TMP)/$(LIBFILE)$(SHARED) $(TMP)/$(LIBFILE)$(STATIC) tmpheaders - -# Create temp directory -$(TMP): - mkdir -p $@ - -# Dynamic library -$(TMP)/$(LIBFILE)$(SHARED): $(OBJS) - echo "Compiling $(notdir $@)" - $(CXX) $^ -shared -o $@ $(LIB) $(LDFLAGS) - -# Static library -$(TMP)/$(LIBFILE)$(STATIC): $(OBJS) - echo "Compiling $(notdir $@)" - $(AR) rcs $@ $^ - -# Copy headers to temp -.PHONY: tmpheaders -tmpheaders: $(TMP)/$(pkgincludedir) - $(CP) $(SRC)/*.h $< - -$(TMP)/$(pkgincludedir): - mkdir -p $@ - -# Library object file -$(TMP)/%.o: $(SRC)/%.cpp $(wildcard $(SRC)/*.h) - echo "Compiling $(NAME)/$(notdir $(basename $@))" - $(CXX) $(PIC) $(CXXFLAGS) -c $< -o $@ - -# Installs -.PHONY: install -install: install_lib - -$(TGT)/$(pkgincludedir): - mkdir -p $@ - -$(TGT)/$(libdir): - mkdir -p $@ - -.PHONY: install_headers -install_headers: $(TGT)/$(pkgincludedir) - echo "Installing $(NAME) headers to $<" - $(CP) $(SRC)/*.h $< - -.PHONY: install_lib -install_lib: $(TGT)/$(libdir) $(TMP)/$(LIBFILE)$(SHARED) - echo "Installing dynamic library to $<" - $(CP) $(TMP)/$(LIBFILE)$(SHARED) $< - -.PHONY: install_staticlib -install_staticlib: $(TGT)/$(libdir) $(TMP)/$(LIBFILE)$(STATIC) - echo "Installing static library to $<" - $(CP) $(TMP)/$(LIBFILE)$(STATIC) $< diff --git a/Package b/Package deleted file mode 100644 index 550c7d3..0000000 --- a/Package +++ /dev/null @@ -1,3 +0,0 @@ -package="msppath" -version="0.1" -requires=("mspmisc",) diff --git a/source/path.cpp b/source/path.cpp index 25c9b17..bed7416 100644 --- a/source/path.cpp +++ b/source/path.cpp @@ -1,7 +1,7 @@ /* $Id$ -This file is part of libmsppath -Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions +This file is part of libmspfs +Copyright © 2006-2008 Mikko Rasa, Mikkosoft Productions Distributed under the LGPL */ diff --git a/source/path.h b/source/path.h index 1da6a93..9eacf51 100644 --- a/source/path.h +++ b/source/path.h @@ -1,12 +1,12 @@ /* $Id$ -This file is part of libmsppath -Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions +This file is part of libmspfs +Copyright © 2006-2008 Mikko Rasa, Mikkosoft Productions Distributed under the LGPL */ -#ifndef MSP_PATH_PATH_H_ -#define MSP_PATH_PATH_H_ +#ifndef MSP_FS_PATH_H_ +#define MSP_FS_PATH_H_ #include #include diff --git a/source/utils.cpp b/source/utils.cpp index 33981b2..ca6d6f3 100644 --- a/source/utils.cpp +++ b/source/utils.cpp @@ -1,7 +1,7 @@ /* $Id$ -This file is part of libmsppath -Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions +This file is part of libmspfs +Copyright © 2006-2008 Mikko Rasa, Mikkosoft Productions Distributed under the LGPL */ diff --git a/source/utils.h b/source/utils.h index b166fed..8139a7e 100644 --- a/source/utils.h +++ b/source/utils.h @@ -1,12 +1,12 @@ /* $Id$ -This file is part of libmsppath -Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions +This file is part of libmspfs +Copyright © 2006-2008 Mikko Rasa, Mikkosoft Productions Distributed under the LGPL */ -#ifndef MSP_PATH_UTILS_H_ -#define MSP_PATH_UTILS_H_ +#ifndef MSP_FS_UTILS_H_ +#define MSP_FS_UTILS_H_ #include #include