changeset 491:7cb48c90c225

merged
author Oleksandr Gavenko <gavenkoa@gmail.com>
date Fri, 25 May 2012 20:45:54 +0300
parents 6c8017f37c60 (current diff) 421f509da795 (diff)
children 570a75083198
files
diffstat 3 files changed, 30 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/cygwin/cygrun/Makefile	Fri May 25 20:24:24 2012 +0300
+++ b/cygwin/cygrun/Makefile	Fri May 25 20:45:54 2012 +0300
@@ -91,12 +91,10 @@
 .PHONY: uninstall
 uninstall:
 	for file in $(addprefix $(bindir)/,$(INST_FILES)); do \
-		if [ -f $$file ]; then \
-			if rm $$file; then :; \
-			else \
-				echo Unable to delete $$file; \
-				exit 1; \
-			fi; \
+		if rm $$file; then :; \
+		else \
+			echo Unable to delete $$file; \
+			exit 1; \
 		fi; \
 	done
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/ansi-colors.sh	Fri May 25 20:45:54 2012 +0300
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+echo "0>none/clear 1>bold 4>underscore 5>blink 7>reverse 8>concealed"
+
+for i in 0 1 2 3 4 5 6 7; do
+  printf "\033[${i}m ${i}type"
+done
+printf "\n"
+for i in 0 1 2 3 4 5 6 7; do
+  printf "\033[${i}m\033[43m\033[32m ${i}type"
+done
+printf "\033[0m\n"
+
+echo "0>black 1>red 2>green 3>yellow 4>blue 5>magenta 6>cyan 7>white"
+for i in 0 1 2 3 4 5 6 7; do
+  for j in 0 1 2 3 4 5 6 7; do
+    printf "\033[3${i}m\033[4${j}m ${i}f${j}b \033[0m"
+  done
+  printf "\033[3${i}m ${i}fnb \033[0m\n"
+done
+
--- a/printarg/Makefile	Fri May 25 20:24:24 2012 +0300
+++ b/printarg/Makefile	Fri May 25 20:45:54 2012 +0300
@@ -42,6 +42,9 @@
 # LD=i686-pc-cygwin-gcc-3 -mno-cygwin
 
 CFLAGS = -std=c99 -O2 -Wall -pedantic
+ifeq 'yes' '$(DEBUG)'
+  CFLAGS += -g
+endif
 LDFLAGS =
 ifeq 'windows' '$(host_os)'
   CFLAGS += -mwindows
@@ -64,7 +67,9 @@
 
 $(APP): $(O_FILES)
 	$(LD) $(LDFLAGS) -o $@ $^
+ifneq 'yes' '$(DEBUG)'
 	strip $@
+endif
 
 $(O_FILES): %.o: %.c $(BUILD_SCRIPTS)
 	$(CC) $(CFLAGS) -c -o $@ $<