--- shake-fs-0.999/msg.c.orig 2011-03-25 23:25:05.000000000 +0000 +++ shake-fs-0.999/msg.c 2011-08-30 18:24:31.000000000 +0000 @@ -19,7 +19,6 @@ #include // puts(), printf(), putchar() -#include "config.h" #include "msg.h" void --- shake-fs-0.999/unattr.c.orig 2011-03-19 09:00:27.000000000 +0000 +++ shake-fs-0.999/unattr.c 2011-08-30 18:24:31.000000000 +0000 @@ -33,7 +33,6 @@ #include // close() #include "linux.h" // getopt() -#include "config.h" #include "executive.h" void strip (char *name, char **attrs); --- shake-fs-0.999/Makefile.orig 2011-08-30 18:27:07.000000000 +0000 +++ shake-fs-0.999/Makefile 2011-08-30 18:24:31.000000000 +0000 @@ -0,0 +1,61 @@ +VERSION = 0.29 +CC = gcc +LFLAGS = -lattr + +BINDIR = $(DESTDIR)/usr/bin +MANDIR = $(DESTDIR)/usr/share/man/man8 +PNAME = shake-$(VERSION) + +CFLAGS += -std=gnu99 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 \ + -D_XOPEN_SOURCE=600 -O2 -D_POSIX_C_SOURCE=200112L -Wall \ + -pedantic-errors -Wcast-align -Wpointer-arith \ + -Wbad-function-cast -DVERSION=\"${VERSION}\" +# CFLAGS += -O0 -ggdb3 -Wconversion -Werror # -pg +CFLAGS += -DNDEBUG + +.PHONY: all clean dist install uninstall + +all: shake unattr +static: all shake-static +dist: + rm -f *.o + rm -f shake?????? + rm -f callgrind.out.* +doc: doc/shake.8 doc/unattr.8 +clean: dist + rm -f unattr shake shake-static + find -name '*.~' -exec rm {} \; + +shake: executive.o judge.o linux.o main.o msg.o signals.o + $(CC) $(CFLAGS) $(LFLAGS) $? -o $@ + +shake-static: executive.o judge.o linux.o main.o msg.o signals.o + $(CC) $(CFLAGS) $(LFLAGS) -static -u attr_setf -u attr_getf $? -o $@ + +unattr: executive.o unattr.o signals.o linux.o + $(CC) $(CFLAGS) $(LFLAGS) $? -o $@ + +%.o: %.c executive.h judge.h linux.h msg.h signals.h Makefile + $(CC) $(CFLAGS) -c $< -o $@ + +doc/%.8: % Makefile \ + doc/unattr-man_insert doc/shake-man_insert doc/fdl-man_insert + help2man -s8 -N -i doc/fdl-man_insert -I doc/$<-man_insert \ + ./$< -o doc/$<.8 + +install: all + cp shake unattr $(BINDIR) + cp doc/shake.8 doc/unattr.8 $(MANDIR) + +uninstall: + rm $(BINDIR)/{shake,unattr} -f + rm $(MANDIR)/{shake,unattr}.8 -f + +tarball: doc clean +override FILELIST := $(shell echo *) + mkdir -p $(PNAME) + cp -R $(FILELIST) $(PNAME) + mv $(PNAME)/distrib/shake-VERSION.ebuild \ + $(PNAME)/distrib/$(PNAME).ebuild + tar -cj $(PNAME) -f ../$(PNAME).tar.bz2 --exclude CVS + rm -Rf $(PNAME)