summaryrefslogtreecommitdiffstats
path: root/sample
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-05-24 18:38:43 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-05-24 18:38:43 +0800
commit70e53f0e7bdbf7ea97ad1d94313b4e1afe15a850 (patch)
tree49a88487844d1926016691497268a1aa4192e37d /sample
parent63a1c2eb76e6b8be02cc239c58d1cbe7adbbb9d4 (diff)
downloadpttbbs-70e53f0e7bdbf7ea97ad1d94313b4e1afe15a850.tar
pttbbs-70e53f0e7bdbf7ea97ad1d94313b4e1afe15a850.tar.gz
pttbbs-70e53f0e7bdbf7ea97ad1d94313b4e1afe15a850.tar.bz2
pttbbs-70e53f0e7bdbf7ea97ad1d94313b4e1afe15a850.tar.lz
pttbbs-70e53f0e7bdbf7ea97ad1d94313b4e1afe15a850.tar.xz
pttbbs-70e53f0e7bdbf7ea97ad1d94313b4e1afe15a850.tar.zst
pttbbs-70e53f0e7bdbf7ea97ad1d94313b4e1afe15a850.zip
- prevent install sample over existing files.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4471 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'sample')
-rw-r--r--sample/etc/Makefile2
-rw-r--r--sample/etc/chess/Makefile2
-rw-r--r--sample/etc/chickens/Makefile2
-rw-r--r--sample/innd/Makefile2
4 files changed, 8 insertions, 0 deletions
diff --git a/sample/etc/Makefile b/sample/etc/Makefile
index f8087583..6b550c67 100644
--- a/sample/etc/Makefile
+++ b/sample/etc/Makefile
@@ -1,6 +1,7 @@
SUBDIR= chess chickens
BBSHOME?=$(HOME)
TARGET=$(BBSHOME)/etc/
+INSTALLTAG=$(TARGET).installed
FILES= @five Welcome Welcome_birth Welcome_login \
Logout goodbye bad_host today_boring \
register registered registermail registeredmail \
@@ -20,4 +21,5 @@ install_sub:
install: install_sub
install -d $(TARGET)
+ test ! -e $(INSTALLTAG) && touch $(INSTALLTAG)
install -c -m 644 $(FILES) $(TARGET)
diff --git a/sample/etc/chess/Makefile b/sample/etc/chess/Makefile
index a01e3cf1..611bbe4a 100644
--- a/sample/etc/chess/Makefile
+++ b/sample/etc/chess/Makefile
@@ -1,5 +1,6 @@
BBSHOME?=$(HOME)
TARGET=$(BBSHOME)/etc/chess/
+INSTALLTAG=$(TARGET).installed
FILES= 1.poem 2.poem 3.poem 4.poem 5.poem 6.poem 7.poem 8.poem 9.poem \
10.poem 11.poem 12.poem 13.poem 14.poem 15.poem 16.poem
@@ -7,5 +8,6 @@ all:
install:
install -d $(TARGET)
+ test ! -e $(INSTALLTAG) && touch $(INSTALLTAG)
install -c -m 644 $(FILES) $(TARGET)
diff --git a/sample/etc/chickens/Makefile b/sample/etc/chickens/Makefile
index 5fecba89..3a568cd6 100644
--- a/sample/etc/chickens/Makefile
+++ b/sample/etc/chickens/Makefile
@@ -1,5 +1,6 @@
BBSHOME?=$(HOME)
TARGET=$(BBSHOME)/etc/chickens/
+INSTALLTAG=$(TARGET).installed
FILES= buymedicine buyoo clean deadth eat food hit kiss\
medicine nofood nohp nosatis oo read sell toofat tootired\
a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 a10 a11 a12 a13 a14 a15 a16\
@@ -22,4 +23,5 @@ all:
install:
install -d $(TARGET)
+ test ! -e $(INSTALLTAG) && touch $(INSTALLTAG)
install -c -m 644 $(FILES) $(TARGET)
diff --git a/sample/innd/Makefile b/sample/innd/Makefile
index 28f297c2..ae2d8fe8 100644
--- a/sample/innd/Makefile
+++ b/sample/innd/Makefile
@@ -1,9 +1,11 @@
BBSHOME?=$(HOME)
TARGET=$(BBSHOME)/innd/
+INSTALLTAG=$(TARGET).installed
FILES=bbsname.bbs newsfeeds.bbs nodelist.bbs ntu.active ncmperm.bbs
all:
install:
install -d $(TARGET)
+ test ! -e $(INSTALLTAG) && touch $(INSTALLTAG)
install -c -m 644 $(FILES) $(TARGET)