From 440af4f3ebfecd68dabf8ce5524fd3f953e81c71 Mon Sep 17 00:00:00 2001 From: merakor Date: Mon, 21 Dec 2020 11:13:51 +0000 Subject: cpt: remove cpt-stat and cpt-readlink, add _stat() and _readlinkf cpt-readlink and cpt-stat were unnecessary additions for mundane tasks. Since they were binaries instead of scripts, they added an extra layer of complexity to the library. These functions are now included inside the package manager library with the names _readlinkf() and _stat(). FossilOrigin-Name: 7e15e2b57ddcb834c4286c8d1ac0a28031ae4f5d39f3c6a99f5b3aa0e9a83d43 --- default.do | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'default.do') diff --git a/default.do b/default.do index c16f5f8..cb45cd0 100644 --- a/default.do +++ b/default.do @@ -4,7 +4,7 @@ fn="${1%.*}" case "$1" in - all) redo-ifchange src/cpt-lib bin/all docs/all ;; + all) redo-ifchange src/cpt-lib docs/all ;; dist) redo clean redo "cpt-$VERSION.tar.xz" @@ -13,15 +13,6 @@ case "$1" in redo-ifchange "$1.in" sed "s|@VERSION@|$VERSION|g" < "$1.in" > "$3" ;; - bin/cpt-readlink|bin/cpt-stat) - redo-ifchange "$1.o" - "$CC" -o "$3" $LDFLAGS "$1.o" $LIBS - ;; - *.o) - [ -f "${1%.o}.c" ] || exit 99 - redo-ifchange "$fn.c" - "$CC" -c -o "$3" $CFLAGS "$fn.c" - ;; "cpt-$VERSION.tar.xz") redo docs/cpt.info rm -rf -- "cpt-$VERSION" @@ -38,7 +29,7 @@ case "$1" in mv "$1" "$3" ;; test) - redo src/test bin/test + redo src/test ;; src/clean) rm -f src/cpt-lib -- cgit v1.2.3