Skip to content

Commit

Permalink
misc: Fix transition for new submodule name
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Venriès <thomas.venries@gmail.com>
  • Loading branch information
Thomas Venriès committed Nov 5, 2017
1 parent 6fb558e commit dd1c5d0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
4 changes: 3 additions & 1 deletion Makefile
Expand Up @@ -18,12 +18,14 @@ install:
exit 1; \
fi
mkdir -p $(MANDIR)
cp $(PKGNAME).1.gz $(MANDIR)/$(PKGNAME).1.gz
mkdir -p $(LICENSEDIR)
mkdir -p $(LIBDIR)
mkdir -p $(BINDIR)
chmod 644 $(PKGNAME).1.gz
chmod 644 LICENSE
chmod 644 $(LIB)
chmod 755 mons
cp $(PKGNAME).1.gz $(MANDIR)/$(PKGNAME).1.gz
cp LICENSE $(LICENSEDIR)/LICENSE
cp $(LIB) $(LIBDIR)/liblist.sh
cp mons $(BINDIR)/mons
Expand Down
16 changes: 8 additions & 8 deletions mons
Expand Up @@ -20,13 +20,6 @@
# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
if [ ! -f "/usr/lib/libshlist/liblist.sh" ]; then
echo '/usr/lib/libshlist/liblist.sh: library not found.'
exit 1
fi

. /usr/lib/libshlist/liblist.sh

usage() {
echo 'Usage: mons [OPTION]...
Expand Down Expand Up @@ -71,7 +64,7 @@ Daemon mode:
}

version() {
echo 'Mons 0.8
echo 'Mons 0.8.1
Copyright (C) 2017 Thomas "Ventto" Venries.
License MIT: <https://opensource.org/licenses/MIT>.
Expand All @@ -82,6 +75,13 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
'
}

# Helps to generate manpage with help2man before installing the library
[ "$1" = '-h' ] && { usage; exit; }
[ "$1" = '-v' ] && { version; exit; }
lib='/usr/lib/libshlist/liblist.sh'
[ ! -r "$lib" ] && { "$lib: library not found."; exit 1; }
. "${lib}"

arg_err() {
usage ; exit 2
}
Expand Down

0 comments on commit dd1c5d0

Please sign in to comment.