summary refs log tree commit diff
path: root/bin/1sh/Makefile
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-06-28 22:28:32 -0400
committerJune McEnroe <june@causal.agency>2019-06-28 22:28:32 -0400
commit2a0976b40a2b3888f9ba9f2d047f81b98837dc58 (patch)
tree0bdcc7964063ffbb9945b5538c4e1c42b91b2b64 /bin/1sh/Makefile
parentSet HISTSIZE in catsh (diff)
downloadsrc-2a0976b40a2b3888f9ba9f2d047f81b98837dc58.tar.gz
src-2a0976b40a2b3888f9ba9f2d047f81b98837dc58.zip
Rename catsh to 1sh
Yes it's another rename because I felt like catsh was too long. 1sh is
short and unique.
Diffstat (limited to '')
-rw-r--r--bin/1sh/Makefile (renamed from bin/catsh/Makefile)20
1 files changed, 10 insertions, 10 deletions
diff --git a/bin/catsh/Makefile b/bin/1sh/Makefile
index 092d8be6..ad85a46a 100644
--- a/bin/catsh/Makefile
+++ b/bin/1sh/Makefile
@@ -40,11 +40,11 @@ GENHDRS = builtins.h nodes.h syntax.h token.h
 SRCS += $(GENSRCS)
 OBJS = $(SRCS:.c=.o) libedit/libedit.a
 
-MAN1 = catsh.1 catsh-kill.1 catsh-printf.1 catsh-test.1
+MAN1 = 1sh.1 1sh-kill.1 1sh-printf.1 1sh-test.1
 
-all: tags catsh
+all: tags 1sh
 
-catsh: $(OBJS)
+1sh: $(OBJS)
 	$(CC) $(LDFLAGS) $(OBJS) $(LDLIBS) -o $@
 
 $(OBJS): $(GENHDRS)
@@ -73,19 +73,19 @@ depend: $(SRCS) $(GENHDRS)
 -include .depend
 
 clean:
-	rm -f catsh $(OBJS) mknodes mksyntax $(GENSRCS) $(GENHDRS) tags .depend
+	rm -f 1sh $(OBJS) mknodes mksyntax $(GENSRCS) $(GENHDRS) tags .depend
 
-install: catsh $(MAN1)
+install: 1sh $(MAN1)
 	install -d $(PREFIX)/bin $(MANDIR)/man1
-	install catsh $(PREFIX)/bin
+	install 1sh $(PREFIX)/bin
 	install -m 644 $(MAN1) $(MANDIR)/man1
 
 uninstall:
-	rm -f $(PREFIX)/bin/catsh $(MAN1:%=$(MANDIR)/man1/%)
+	rm -f $(PREFIX)/bin/1sh $(MAN1:%=$(MANDIR)/man1/%)
 
 shell:
-	grep -q '^$(PREFIX)/bin/catsh$$' /etc/shells \
-		|| echo '$(PREFIX)/bin/catsh' >> /etc/shells
+	grep -q '^$(PREFIX)/bin/1sh$$' /etc/shells \
+		|| echo '$(PREFIX)/bin/1sh' >> /etc/shells
 
 unshell:
-	sed -i sed '\;^$(PREFIX)/bin/catsh$$;d' /etc/shells
+	sed -i sed '\;^$(PREFIX)/bin/1sh$$;d' /etc/shells