LDFLAGS=-lcurses
-REVISION_NUMBER=$(shell git log | grep ^commit | wc -l)
+REVISION_NUMBER=$(shell git log | grep ^commit | wc -l | sed -e "s/[^0-9]//g")
ifeq ($(DEBUG),yes)
OPTIMIZE_FLAG = -ggdb3 -DDEBUG
# This script creates the Debian package. The way it does it is
# probably not very conventional. I am open to suggestions.
-# Depends: ${shlibs:Depends}
-
-VERSION=1.0-R`git log|grep ^commit|wc -l`
+VERSION=1.0-R`git log | grep ^commit | wc -l | sed -e "s/[^0-9]//g"`
PACKAGE=/tmp/selector_${VERSION}_i386.deb
BIN_PATH="usr/bin"
MAN_PATH="usr/share/man/man1"
mkdir -p ${TMP}/${d}
done
-LIB_DEPENDS=$(dpkg-shlibdeps -O ./selector|grep Depends|sed -e "s/^.*Depends=//")
+LIB_DEPENDS=$(dpkg-shlibdeps -O ./selector | grep Depends | sed -e "s/^.*Depends=//")
cat > ${TMP}/DEBIAN/control <<EOF
Package: selector