Skip to content

Commit

Permalink
Check existence necessary executables
Browse files Browse the repository at this point in the history
  • Loading branch information
ngaro committed Mar 26, 2018
1 parent 1c2513a commit b96261f
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build-deb.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/bash

for prog in pbuilder-dist make dpkg-source ; do
if sh -c "which $prog 2> /dev/null"; then true ; else echo "You don\'t have $prog, install it" ; exit ; fi
done

backup=`pwd`
DIR="$( cd "$( dirname "$0" )" && pwd )"
cd $DIR
Expand Down
4 changes: 4 additions & 0 deletions build-installers.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/bash

for prog in pbuilder-dist make dpkg-source ; do
if sh -c "which $prog 2> /dev/null" ; then true ; else echo "You don\'t have $prog, install it" ; exit ; fi
done

backup=`pwd`
DIR="$( cd "$( dirname "$0" )" && pwd )"
cd $DIR
Expand Down
4 changes: 4 additions & 0 deletions build-source.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/bash

for prog in pbuilder-dist make dpkg-source ; do
if sh -c "which $prog 2> /dev/null"; then true ; else echo "You don\'t have $prog, install it" ; exit ; fi
done

backup=`pwd`
DIR="$( cd "$( dirname "$0" )" && pwd )"
cd "$DIR"
Expand Down
2 changes: 2 additions & 0 deletions src/makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
SHELL=/bin/bash
CFLAGS=--std=c99
EXECUTABLES = find msgmerge msgfmt install rm mkdir cp chmod valac
CHECKEXECS := $(foreach exec,$(EXECUTABLES), $(if $(shell which $(exec)),,$(error No $(exec) found, install it)))

prefix=/usr
sysconfdir=/etc
Expand Down

0 comments on commit b96261f

Please sign in to comment.