diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2005-05-20 03:18:35 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2005-05-20 03:18:35 +0000 |
commit | 77284bfaa69f9a1b45553ef81b4082167d0dd588 (patch) | |
tree | d4f35106ab41d2fd11f27ae1bbd0ef0c27434f18 /Makefile | |
parent | 17e476378a561411e24e0ed2f60a7e9548d09e5b (diff) |
fix Solaris compatibility issues (bug #4339)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5747 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'Makefile')
-rwxr-xr-x | Makefile | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -512,7 +512,7 @@ update: if [ -f patches/.applied ]; then \ patches=`cat patches/.applied`; \ fi; \ - if ! [ -z "$$patches" ]; then \ + if [ ! -z "$$patches" ]; then \ for x in $$patches; do \ echo "Unapplying $$x..."; \ patch -R -p0 < patches/$$x; \ @@ -527,7 +527,7 @@ update: grep ^C update.out | cut -d' ' -f2- ; \ fi ; \ rm -f update.out; \ - if ! [ -z "$$patches" ]; then \ + if [ ! -z "$$patches" ]; then \ for x in $$patches; do \ if [ -f patches/$$x ]; then \ echo "Applying patch $$x..."; \ @@ -638,7 +638,7 @@ upgrade: all bininstall adsi: all mkdir -p $(DESTDIR)$(ASTETCDIR) for x in configs/*.adsi; do \ - if ! [ -f $(DESTDIR)$(ASTETCDIRX)/$$x ]; then \ + if [ ! -f $(DESTDIR)$(ASTETCDIRX)/$$x ]; then \ install -m 644 $$x $(DESTDIR)$(ASTETCDIR)/`basename $$x` ; \ fi ; \ done @@ -806,7 +806,7 @@ env: # We can avoid this by making noclean cleantest: - if ! cmp -s .cleancount .lastclean ; then \ + if cmp -s .cleancount .lastclean ; then echo ; else \ $(MAKE) clean; cp -f .cleancount .lastclean;\ fi @@ -840,7 +840,7 @@ apply: unapply: @if [ -z "$(PATCH)" ]; then \ echo "Usage: make PATCH=<patchname> unapply"; \ - elif ! grep -q ^$(PATCH)$$ patches/.applied 2>/dev/null; then \ + elif grep -v -q ^$(PATCH)$$ patches/.applied 2>/dev/null; then \ echo "Patch $(PATCH) is not applied"; \ elif [ -f "patches/$(PATCH)" ]; then \ echo "Un-applying patch $(PATCH)"; \ |