aboutsummaryrefslogtreecommitdiff
path: root/default.do
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2021-02-04 14:30:43 +0000
committermerakor <cem@ckyln.com>2021-02-04 14:30:43 +0000
commit97312778a09decf65030e994e72ce07434ce0f07 (patch)
treeeeb18b94a461a05a6993d98ab9a68eee1152faf9 /default.do
parent63c4051197cfcad2231de6eb9874055d668f47df (diff)
downloadcpt-97312778a09decf65030e994e72ce07434ce0f07.tar.gz
cpt: switch back to 'make'
FossilOrigin-Name: 048c099fa4155f31725c51c27b09359d7b04f4c2d7e64f2a2b381ab7dea7803d
Diffstat (limited to 'default.do')
-rw-r--r--default.do40
1 files changed, 0 insertions, 40 deletions
diff --git a/default.do b/default.do
deleted file mode 100644
index 23cedf8..0000000
--- a/default.do
+++ /dev/null
@@ -1,40 +0,0 @@
-. ./config.rc
-
-case "$1" in
- all) redo-ifchange src/cpt-lib docs/all ;;
- dist)
- redo clean
- redo "cpt-$VERSION.tar.xz"
- ;;
- src/cpt-lib)
- redo-ifchange "$1.in"
- sed -e "s|@VERSION@|$VERSION|g" \
- -e "s|@DOCSTRING@|Call functions from the library|g" < "$1.in" > "$3"
- chmod +x "$3"
- ;;
- "cpt-$VERSION.tar.xz")
- redo docs/cpt.info
- rm -rf -- "cpt-$VERSION"
- mkdir -p "cpt-$VERSION"
- { git ls-tree -r HEAD --name-only && echo docs/cpt.info ;} |
- while read -r file; do
- [ "${file##*/*}" ] ||
- mkdir -p "cpt-$VERSION/${file%/*}"
- cp "$file" "cpt-$VERSION/$file"
- done
- tar cf "cpt-$VERSION.tar" "cpt-$VERSION"
- xz -z "cpt-$VERSION.tar"
- rm -rf -- "cpt-$VERSION"
- mv "$1" "$3"
- ;;
- test)
- redo src/test
- ;;
- src/clean)
- rm -f src/cpt-lib
- PHONY
- ;;
- *)
- echo "Unknown target $1"
- exit 99
-esac