summaryrefslogtreecommitdiffstats
path: root/Makefile (follow)
AgeCommit message (Collapse)AuthorFilesLines
8 daysAdd git-precheck scriptMatt Hunter1-2/+4
This is an alternative entrypoint primarily intended for use in other scripts. The purpose of git-precheck is to easily determine the state of a git repository before going on to perform additional, possibly disruptive work. git-precheck tries to cover as many bases as possible - odd cases like 'merge in progress', 'cherry-pick in progress', etc. By default, we only exit success (0) if we are in a repo that is completely clean (no file modifications or untracked files present) and has no ongoing operation. Signed-off-by: Matt Hunter <m@lfurio.us>
2025-04-13Fix potential installation problems with odd file permissionsMatt Hunter1-1/+1
It is possible for git-sonar to be installed in such a way that it is only executable by root. For example, by running `make install` after checking out the git tree by a user with a restrictive umask value. Use the install command in the Makefile to explicitly set the correct mode bits of the installed git-sonar script. Signed-off-by: Matt Hunter <m@lfurio.us>
2021-08-02Rewrite MakefileMalfurious1-28/+20
The Makefile is updated to deal with the single 'git-sonar' file only, now that the others have been merged into it. Additionally, several issues have been fixed with the file, including: * Now easier to override the PREFIX variable (install location) * PWD works properly when running make with sudo * Install now default to system-wide * bin directory now explicitly created if it doesn't exist A specific problem corrected by this patch is that `PREFIX=$HOME/.local make install` on a fresh system will no longer result in the script being copied to the _regular file_ $HOME/.local/bin, because bin did not exist. Signed-off-by: Malfurious <m@lfurio.us>
2021-03-24Update references to project name to git-sonarMalfurious1-7/+7
Signed-off-by: Malfurious <m@lfurio.us>
2015-09-01Add MakefileMax Linke1-0/+35
This will make it easier to install the tool. Currently everything is just copied into the home directory. But nothing works I have to figure out a little bit how to make this run under Linux. The develop command can be used for quick iteration cycles.