From e057a21962fe9e81b47cfd6b97fc4c6c2cb156b9 Mon Sep 17 00:00:00 2001 From: Jack Jamison Date: Mon, 20 Jul 2026 16:08:58 -0400 Subject: clean ups and clarifications --- snag/Makefile | 22 ---------------------- snag/main.c | 2 +- snag/makefile | 22 ++++++++++++++++++++++ snag/readme.txt | 8 ++++---- 4 files changed, 27 insertions(+), 27 deletions(-) delete mode 100644 snag/Makefile create mode 100644 snag/makefile (limited to 'snag') diff --git a/snag/Makefile b/snag/Makefile deleted file mode 100644 index 8fa032c..0000000 --- a/snag/Makefile +++ /dev/null @@ -1,22 +0,0 @@ -CC = gcc -CFLAGS = -Wall -g - -TARGET = snag - -SRCS = main.c -OBJS = $(SRCS:.c=.o) - -.SILENT: $(OBJS) $(TARGET) - -all: $(TARGET) - -clean: - rm -f $(OBJS) $(TARGET) - -$(TARGET): $(OBJS) - printf " LD %s\n" $@ - $(CC) $(CFLAGS) -o $@ $< - -%.o: %.c - printf " CC %s\n" $< - $(CC) $(CFLAGS) -c $< -o $@ diff --git a/snag/main.c b/snag/main.c index c80ec65..0b5f442 100644 --- a/snag/main.c +++ b/snag/main.c @@ -4,7 +4,7 @@ #include #include -#define PKG_DB "../snaggies" +#define PKG_DB "../packages" #define PKG_INFO_CMD "./get_pkg_attrs.sh" typedef struct { diff --git a/snag/makefile b/snag/makefile new file mode 100644 index 0000000..8fa032c --- /dev/null +++ b/snag/makefile @@ -0,0 +1,22 @@ +CC = gcc +CFLAGS = -Wall -g + +TARGET = snag + +SRCS = main.c +OBJS = $(SRCS:.c=.o) + +.SILENT: $(OBJS) $(TARGET) + +all: $(TARGET) + +clean: + rm -f $(OBJS) $(TARGET) + +$(TARGET): $(OBJS) + printf " LD %s\n" $@ + $(CC) $(CFLAGS) -o $@ $< + +%.o: %.c + printf " CC %s\n" $< + $(CC) $(CFLAGS) -c $< -o $@ diff --git a/snag/readme.txt b/snag/readme.txt index 6062924..ca358b6 100644 --- a/snag/readme.txt +++ b/snag/readme.txt @@ -1,14 +1,14 @@ -# SNAG Package Manager +# SNAGGLE Package Manager (snag) ## Useful Subcommands `install`/`inst` - install the specified package(s) (default) `remove` - uninstall the specified package(s) `upgrade/'up` - upgrade the package database -`find`/`search` - list packages whose metadata matches specified search string -`info`/`desc` - describe the metadata of the specified package(s) +`find`/`search` - list packages whose metadata matches specified search string (flag to limit to installed) +`info`/`desc` - describe the metadata (and install data) of the specified package(s) +`log` - open your pager to the build log of the specified package `files` - list the installed files of the specified package(s) -`log` - open your pager to the build log of the specified package `why` - list why this package is installed (manually installed, as a dependency, from a group) ## Important Directories -- cgit v1.2.3