Commits

Anonymous committed 4d75813

Add a sanity check for not overwriting the fortunes archive.

Now the version of the fortunes must be bumped explicitly before running
./bin/gen-fortunes.pl again.

Comments (0)

Files changed (2)

t2/humour/fortunes/Makefile

 	cp $(FILES) $(DATS) $(EXTRA_FILES) $(DIST_DIR)
 
 $(PACKAGE_BASE): $(PACKAGE_DEPS)
+	if test -e $@ ; then \
+		echo "Error! Cannot overwrite an existing archive. Please bump the version" 1>&2 ;\
+		exit -1 ;\
+	fi
 	@make distdir
-	tar -czvf $(PACKAGE_BASE) $(DIST_DIR)
+	tar -czvf $@ $(DIST_DIR)
 	rm -fr $(DIST_DIR)
 
 $(INDEX_FILE): fortunes-index.html $(PACKAGE_BASE)

t2/humour/fortunes/ver.txt

-0.16.31
+0.16.32