[svnbook commit] r1919 - trunk/src/nb
sunny256
svnbook-dev at red-bean.com
Sat Jan 7 15:09:51 CST 2006
Author: sunny256
Date: Sat Jan 7 15:09:49 2006
New Revision: 1919
Modified:
trunk/src/nb/Makefile
Log:
"make bookdiff" changes in the Norwegian book.
* src/nb/Makefile
(bookdiff): If the $(BDTMP) directory exists, it can be removed by
pressing Enter. Also straigten up the output by hiding things.
Modified: trunk/src/nb/Makefile
==============================================================================
--- trunk/src/nb/Makefile (original)
+++ trunk/src/nb/Makefile Sat Jan 7 15:09:49 2006
@@ -57,10 +57,15 @@
done
bookdiff:
- mkdir $(BDTMP)
+ @mkdir $(BDTMP) || { \
+ echo -n "\"$(BDTMP)\" already exists. Press ENTER to delete it, or CTRL-C to abort..." >&2; \
+ read; \
+ rm -rf $(BDTMP); \
+ mkdir $(BDTMP); \
+ }
$(MAKE) engdir
cp -a book/eng $(BDTMP)/
- for _ptd in $(BDFILES); do \
+ @for _ptd in $(BDFILES); do \
cat $(BDTMP)/eng/$$_ptd | bin/clean_files -e >>$(BDTMP)/eng.txt; \
cat book/$$_ptd | bin/clean_files -e >>$(BDTMP)/norw.txt; \
done
More information about the svnbook-dev
mailing list