aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-12-24docs/default.do: silence the 'command -v' callmerakor
FossilOrigin-Name: 2d2891423ef16e2e42572b38faa4f94061662b27131a4729053098e10851716a
2020-12-24config.rc: remove C-related variablesmerakor
FossilOrigin-Name: 3f1ed6e4cfa21578935f3f4cf88840be57bae853d5553f726fc5890e9c2ea5ee
2020-12-24lib.rc: move helper functions to a seperate filemerakor
In order to avoid confusion, I have moved helper functions to lib.rc from the config.rc file. FossilOrigin-Name: a51d7fa1235547b1f948eae9cd55ddf3ae365d56364eaa2644b16113ea8dd979
2020-12-24cpt: add info page to the build systemmerakor
- Made the info page an optional part of the build system, meaning that 'redo' will not attempt to build or install the info page if you don't have 'makeinfo' available on your system. - The info page is installed to the 'info/' directory relative to the $SHAREDIR. It can be overriden by setting the INFODIR variable. FossilOrigin-Name: 4df60a4d7dbaac4948453208251b1210974d931bfcf74b583cd862e9d28fd57c
2020-12-23dir-locals: updatemerakor
FossilOrigin-Name: f5dd4d31676874d541423f18ae62a3f9dc03a6ae1862eb82968b02b2f9672d5a
2020-12-21gitignore: ignore cpt-libmerakor
FossilOrigin-Name: 9ebfeb2ebb9969173e4b5677f4bdab4b85e71fda41ce3b60810a115c815820f2
2020-12-21dir-local: fix excluded warning listmerakor
FossilOrigin-Name: aaaa279be11e88bfa2745b442a2543ef176cd79d9d5537f25e6f93928bd61ae4
2020-12-21cpt-lib: add ability to be used as a scriptmerakor
- cpt script no longer ignores anything. - If cpt-lib is invoked from the command-line, it parses the given command-line arguments, making it possible to be used as a script. FossilOrigin-Name: 8484d0ff082d03f38fa41d7a5e76c21bfdd5951b6db5193bb4a7f17e74a5025e
2020-12-21cpt: remove cpt-stat and cpt-readlink, add _stat() and _readlinkfmerakor
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
2020-12-21tests: calm shellcheck downmerakor
FossilOrigin-Name: 16695158bf8e9ce16fb245dd3d71c44b3678892cbc7e8cd7ca221ce7d4c48823
2020-12-21Merge branch 'redo'merakor
FossilOrigin-Name: 046e1a0012624ed9a8934a8a4099710264281bcb6814c1fc0fbe3157c1121d2f
2020-12-21cpt-chbuild: use the cache structure of the librarymerakor
cpt-chbuild previously defined its own cache structure instead of reusing the one defined in the library. This change should fix the paths for users defining their own. FossilOrigin-Name: 4fdadaf3e1494c77deb477630f44fa3be5b0268d2dd9726254ecf228e629a8d0
2020-12-21Merge branch 'master' into redoredomerakor
FossilOrigin-Name: 242ef9adb08b706d0d45a500ef95aaa32860e4119cb1715a981c9a87c5f29843
2020-12-21create_cache(): new variable and argument changesmerakor
- If an argument is supplied to create_cache(), it will not create the default subdirectories (build/pkg/export). - create_cache() now also globally sets the $tmp_dir variable, which is the default directory + $pid variable Changes above do not affect the previous usage of the function, so it is not considered a breaking change. FossilOrigin-Name: 2eb5bc89e2e1c688186667af0d5177a1cdc3dc2e83e28e134752955c68a5c4e0
2020-12-21docs/default: change targetsmerakor
FossilOrigin-Name: 779edf420267002781b77fe90d1a9301cb02aab72c6f5f5c51a5e27d439573f1
2020-12-21default.do: run docs/all instead of docs/cpt.infomerakor
FossilOrigin-Name: 5fb5e5902106aa153d1d68dcf6ab19640f47dc07804c8ab487ba1549ec349fbb
2020-12-20README: updatemerakor
FossilOrigin-Name: 22c3642bb16ab93eb946f2b8b0c63cfcf8d83f6a86458096525d4f4c0cc22943
2020-12-20.gitignore: updatemerakor
FossilOrigin-Name: 49d9da0713812747e282deef29eeb87b6ac7619676f625b46dd881ef9876cdf0
2020-12-20GitHub Workflows: add minimal 'do' shell script for use in testsmerakor
FossilOrigin-Name: de5cc9af20b3b0b7921469eb7bbdbe8ba0950583f627480fa2ada969e6407bf4
2020-12-20bin: add testsmerakor
FossilOrigin-Name: ec194605cd8c21140304faf47b67f419967b7606155d7afb0e6d9f83c7622d46
2020-12-20default.do: remove second PHONY call, add PHONY call to src/cleanmerakor
FossilOrigin-Name: 3d8973d0ab4bd8fe91cd1f5de2d993dbd232c73b725fd9a901ce2dabdcc15842
2020-12-20config.rc: better helper functionsmerakor
FossilOrigin-Name: 616fa2758bb01ad6f314baa41abb361b53194e62407bdc7ecd2320be41073334
2020-12-20src: be more specific for calling shellcheck on scriptsmerakor
FossilOrigin-Name: fbdd6c240bc5eae6522926ccb776cd79ab87c1f2e422fd4f15ba8c23fbbbe5b4
2020-12-20src: remove Makefilemerakor
FossilOrigin-Name: 2b735d94662c1f120603b8077e880d07eb76f26f155e2957ce60d6057c938509
2020-12-20docs: change texinfo build functionmerakor
FossilOrigin-Name: 292f67b613434aeb4c338dc906245848d8c80410f9afb4945a5e62b7c8ca3880
2020-12-20cpt: remove Makefile and config.mkmerakor
FossilOrigin-Name: 939a0899a2d62edcf207a8679988a0486a06c56fd1b92efc0af2e0b0146a5553
2020-12-20cpt: update redo build filesmerakor
FossilOrigin-Name: de567d5766f6af7e5659f2afbef6a566b386c63659f0f8b292f905e38b53c272
2020-12-20Merge branch 'master' into redomerakor
FossilOrigin-Name: cabdaca0b472a803c09f16b88bd0073b79b1984edbbdd7949f724f32fe038df8
2020-12-20gitignore: ignore info pagesmerakor
FossilOrigin-Name: 76cd9b63c30232bed853594008c3ba5185452bc703649089a758f39949b060b3
2020-12-20update redo filesmerakor
FossilOrigin-Name: 1096355ead3f8b366f9cf1428369d38cc9735d78da31e8fcfbb3c7ce046d1db0
2020-12-20cpt-lib: move to cpt-lib.inmerakor
FossilOrigin-Name: ffb46492fd34c44bd9d422c3e5febec38f8938901d339e5f952cac5c91274ee7
2020-12-20Merge branch 'master' into redomerakor
FossilOrigin-Name: 61d7c274f17e92fda76555e1c7200053fd563614420a40e69d4060dc6a28ad17
2020-12-20cpt-lib: fix a bug in pkg_clean when CPT_DEBUG was set5.1.1merakor
Because of the CPT_DEBUG check returning 1, it would skip the termination, meaning that even the package has failed, it will create the tarball and exit with success. FossilOrigin-Name: ce2337ddaa89f4a9928018ad325e6c7eac71ffb639ad55ad8e8bc97547f9a59b
2020-12-20Merge branch 'master' into redomerakor
FossilOrigin-Name: 96a790f36f4138d910cb93c04945d7ded695554f0d750efb3f91c4f576c5e430
2020-12-20docs: add new documentation for cptmerakor
FossilOrigin-Name: 40a002bfab4194969ad59f76b04d52473ca3d64d56f97dd30989b73ac774f9f7
2020-12-20try out the redo build systemmerakor
FossilOrigin-Name: 6ca0330a7e548be4e516ad6c275b2878a1521d2de5263fd75defc16f8f52c93b
2020-11-24cpt: bump to 5.1.05.1.0merakor
FossilOrigin-Name: 61286170f1581e6b6af180d0de2ebef9b900e3a693921d5966f66c7d619a4485
2020-11-24lib: make cache more readable and fix removing of temporary filesmerakor
- Move the conflict and temporary manifest files inside the process directory. Instead of naming them 'c' and 'm', name them 'conflict' and 'manifest' respectively. - Remove the process directory entirely. FossilOrigin-Name: 27077d44b5863954d0d25b39a49c00d22ac074436afd764095ef06703407bf53
2020-11-24pkg_swap(): use pkg_owner()merakor
FossilOrigin-Name: e37239871c297b73bf3c08d31fa0ec93d9581939e65771e970933adfcfad83a9
2020-11-24pkg_build(): generate manifest before the dependencies are fixed.merakor
FossilOrigin-Name: 2bf2c63be602059ad077171016c46e1e880920c6085e75dd6c1f9a82fa515153
2020-11-11create_cache(): create multi-level temporary directories per processmerakor
FossilOrigin-Name: 89e024bc50ae14880135de6279580f2e9da3a1e2dcb58fc43f83a9f012bdb060
2020-11-09cpt-lib: don't make main() a function unto itselfmerakor
FossilOrigin-Name: 3f01d4659d9f4e7488387436153fc9a20723b40f28515c5020172a83eb88128b
2020-11-09getoptions(): parse the options during main() call on cpt-libmerakor
Calling parse() after cpt-lib has been called causes sys_db to be initiated using the wrong CPT_ROOT, among other issues. By calling the option parser during the main(), we make sure that the options parsed are used as soon as possible. FossilOrigin-Name: 2933b99bec8ec9c3f20143e2a19c270a6d208f723d2b394c625cbc13d2625326
2020-11-03cpt-lib: fix shellcheck errormerakor
FossilOrigin-Name: 9b88780f4576b44b7578dd7758f8c2a967d11ff6a86566c08dd5b4ccf04f2309
2020-11-03cpt-search: add '--others' optionmerakor
If cpt-search was called from a package directory, adding the '-o' option makes it output only the other instances of the package. FossilOrigin-Name: edf17ee77fb06aecbc6d409d49390aea2719af012ca8be2b7daf1dbda88da269
2020-10-31cpt-fork: allow specifying full pathmerakor
FossilOrigin-Name: 30aa742e72329308997e804260ea644a315df66dd4a63690a2dd48060637d6a6
2020-10-31src: update parser definitionsmerakor
FossilOrigin-Name: 8f46944f81271ff851a5d21bfbaa21ad86f8cf120ef22bf8f9a64ecd3f339eb3
2020-10-31getoptions: update to 2.0.1merakor
FossilOrigin-Name: cdbd1a2ac3828872b8de526e0030d71efbe2ff2a43f62ad05a2bbbe9eab229f6
2020-10-25cpt-lib (pkg_fixdeps): rename to pkg_fix_deps and major changes:merakor
Following the changes on kiss, pkg_fixdeps has been renamed to pkg_fix_deps and added readelf support. Readelf is a much better solution for checking dependencies as it can differentiate between actual dependencies and "dependencies of dependencies". cpt will check for the tool to use in the following order: - readelf - eu-readelf - llvm-readelf - ldd CPT_ELF: This new variable can be used to force a specific tool, such as ldd, or a specific readelf program. Other changes include: - The function no longer prints found dependencies - It checks for the dependencies on the current manifest first, and skips if they have been found on the package. - The function now uses the pkg_owns() for finding packages FossilOrigin-Name: 42927fcc2cd7f588be2658c506773b9be22f2b268e0999903ce1a84c65f7b5ec
2020-10-25pkg_owner(): add function to retrieve the owning package of a filemerakor
This function is almost identical to the function with the same name on kiss. However, instead of saving the owner on a global variable, the function prints the owning package to the standard output. The function can be called similar to grep. The usage is: pkg_owner GREP_FLAGS FILE_TO_CHECK MANIFEST_LOCATIONS... If no manifest is specified, the function will use every installed package on the system database. FossilOrigin-Name: 53cbeff7a92850efd172960f12848885961655c9c53e24a5f8cb8da7642ce541