Update URLs and functions

main
earnest ma 2021-07-26 17:26:29 -04:00
parent 6a80bc68a8
commit ed1d8a013e
No known key found for this signature in database
GPG Key ID: 6B361FA81C5FB695
2 changed files with 11 additions and 9 deletions

View File

@ -2,8 +2,10 @@
[![This project is considered experimental](https://img.shields.io/badge/Status-experimental-red.svg)](https://www.arp242.net/status/experimental) [![This project is considered experimental](https://img.shields.io/badge/Status-experimental-red.svg)](https://www.arp242.net/status/experimental)
[![sr.ht Project hub](https://img.shields.io/badge/sr.ht-Project%20hub-grey)](https://sr.ht/~earnestma/aptpkg) [![sr.ht Project hub](https://img.shields.io/badge/sr.ht-Project%20hub-grey)](https://sr.ht/~earnestma/aptpkg)
- **[Packaging git repository](https://git.sr.ht/~earnestma/aptpkg-pkgs)** - **[aptpkg.earne.link packaging git
- **[Package archive setup/ info](https://man.sr.ht/~earnestma/aptpkg)** repository](https://git.sr.ht/~earnestma/aptpkg-pkgs)**
- **[aptpkg.earne.link Package archive setup/
info](https://man.sr.ht/~earnestma/aptpkg)**
Easily create debian packages. Easily create debian packages.

14
aptpkg
View File

@ -11,7 +11,7 @@ aptpkg v$APTPKG_VERSION
Easily create debian packages. Easily create debian packages.
Full documentation is being worked on and will be available at Documentation: https://man.sr.ht/~earnestma/aptpkg
Usage: Usage:
aptpkg [directory] aptpkg [directory]
@ -43,6 +43,8 @@ build_deb(){
# Determine which function to run # Determine which function to run
load_build(){ load_build(){
mkdir -p dist
# shellcheck disable=SC1090 # shellcheck disable=SC1090
source "$1/build" source "$1/build"
@ -53,16 +55,14 @@ load_build(){
} }
# Run! # Run!
mkdir -p dist
if [ $# -ne 1 ]; then
error_usage_die "You must provide one directory"
fi
case $1 in case $1 in
-h|--help) -h|--help)
show_help ;; show_help ;;
*) *)
if [ $# -ne 1 ]; then
error_usage_die "You must provide one directory"
fi
check "$1" check "$1"
load_build "$1" ;; load_build "$1" ;;
esac esac