Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implemented word count (wc), chmod and head commands #24

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
5 changes: 4 additions & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,15 @@ EXTRA_DIST = m4/gnulib-cache.m4

install-exec-local:
$(LN_S) -f gfcli $(DESTDIR)$(bindir)/gfcat
$(LN_S) -f gfcli $(DESTDIR)$(bindir)/gfchmod
$(LN_S) -f gfcli $(DESTDIR)$(bindir)/gfcp
$(LN_S) -f gfcli $(DESTDIR)$(bindir)/gfls
$(LN_S) -f gfcli $(DESTDIR)$(bindir)/gfmkdir
$(LN_S) -f gfcli $(DESTDIR)$(bindir)/gfrm
$(LN_S) -f gfcli $(DESTDIR)$(bindir)/gfstat
$(LN_S) -f gfcli $(DESTDIR)$(bindir)/gftail
$(LN_S) -f gfcli $(DESTDIR)$(bindir)/gfhead
$(LN_S) -f gfcli $(DESTDIR)$(bindir)/gfwc

rpms: prep
QA_RPATHS=17 rpmbuild --define '_topdir $(abs_top_builddir)/build/rpmbuild' \
Expand All @@ -25,7 +28,7 @@ prep: dist
cp glusterfs-coreutils.spec build/rpmbuild/SPECS

uninstall-local:
cd $(DESTDIR)$(bindir) && rm -f gfcat gfcp gfls gfmkdir gfmv gfrm gfstat gftail
cd $(DESTDIR)$(bindir) && rm -f gfcat gfcp gfls gfmkdir gfrm gfstat gftail gfwc gfhead gfchmod

clean-local:
rm -rf build rpmbuild *.rpm
Expand Down
17 changes: 16 additions & 1 deletion man/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ gfmkdir.1: $(top_builddir)/build/bin/gfmkdir
$(HELP2MAN) --output=$@-t -I common_seealso.h2m \
$(top_builddir)/build/bin/$* && mv $@-t $@

gfchmod.1: $(top_builddir)/build/bin/gfchmod
$(HELP2MAN) --output=$@-t -I common_seealso.h2m \
$(top_builddir)/build/bin/$* && mv $@-t $@

gfwc.1: $(top_builddir)/build/bin/gfwc
$(HELP2MAN) --output=$@-t -I common_seealso.h2m \
$(top_builddir)/build/bin/$* && mv $@-t $@

gfput.1: $(top_builddir)/build/bin/gfput
$(HELP2MAN) --output=$@-t $(top_builddir)/build/bin/$* \
&& mv $@-t $@
Expand All @@ -35,19 +43,26 @@ gfstat.1: $(top_builddir)/build/bin/gfstat
$(HELP2MAN) --output=$@-t -I common_seealso.h2m \
$(top_builddir)/build/bin/$* && mv $@-t $@

gfhead.1: $(top_builddir)/build/bin/gfhead
$(HELP2MAN) --output=$@-t -I common_seealso.h2m \
$(top_builddir)/build/bin/$* && mv $@-t $@

gftail.1: $(top_builddir)/build/bin/gftail
$(HELP2MAN) --output=$@-t -I common_seealso.h2m \
$(top_builddir)/build/bin/$* && mv $@-t $@

man1_MANS = gfcat.1 \
gfcli.1 \
gfchmod.1 \
gfcp.1 \
gfls.1 \
gfmkdir.1 \
gfput.1 \
gfrm.1 \
gfstat.1 \
gftail.1
gfhead.1 \
gftail.1 \
gfwc.1

EXTRA_DIST = common_seealso.h2m

Expand Down
9 changes: 9 additions & 0 deletions src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -4,38 +4,47 @@ LDADD = $(top_builddir)/lib/libgnu.a
all-local:
$(LN_S) -f gfcli $(top_builddir)/build/bin/gfcat
$(LN_S) -f gfcli $(top_builddir)/build/bin/gfcp
$(LN_S) -f gfcli $(top_builddir)/build/bin/gfchmod
$(LN_S) -f gfcli $(top_builddir)/build/bin/gfls
$(LN_S) -f gfcli $(top_builddir)/build/bin/gfmkdir
$(LN_S) -f gfcli $(top_builddir)/build/bin/gfwc
$(LN_S) -f gfcli $(top_builddir)/build/bin/gfrm
$(LN_S) -f gfcli $(top_builddir)/build/bin/gfstat
$(LN_S) -f gfcli $(top_builddir)/build/bin/gftail
$(LN_S) -f gfcli $(top_builddir)/build/bin/gfhead

bin_PROGRAMS = $(top_builddir)/build/bin/gfcli \
$(top_builddir)/build/bin/gfput

EXTRA_DIST = glfs-cat.h \
glfs-cp.h \
glfs-chmod.h \
glfs-cli-commands.h \
glfs-cli.h \
glfs-flock.h \
glfs-ls.h \
glfs-mkdir.h \
glfs-wc.h \
glfs-rm.h \
glfs-stat.h \
glfs-stat-util.h \
glfs-tail.h \
glfs-head.h \
glfs-util.h

__top_builddir__build_bin_gfcli_SOURCES = glfs-cli.c \
glfs-cli-commands.c \
glfs-cat.c \
glfs-chmod.c \
glfs-cp.c \
glfs-flock.c \
glfs-ls.c \
glfs-mkdir.c \
glfs-wc.c \
glfs-rm.c \
glfs-stat.c \
glfs-stat-util.c \
glfs-head.c \
glfs-tail.c \
glfs-util.c

Expand Down
Loading