Browse Source

Add options --git, --svn

Serj Kalichev 10 years ago
parent
commit
482e30ad16
2 changed files with 8 additions and 2 deletions
  1. 2 2
      Makefile
  2. 6 0
      scripts/rfa

+ 2 - 2
Makefile

@@ -24,10 +24,10 @@ install: all
 	done;
 	# Install scripts and other stuff
 	install -d $(INSTALL_SBIN_DIR)
-	install -m 0755 $(SCRIPTS_DIR)/rfa	$(INSTALL_SBIN_DIR)
+	install -m 0755 $(SCRIPTS_DIR)/rfa $(INSTALL_SBIN_DIR)
 	# Install configs
 	install -d $(INSTALL_CONF_DIR)
-	install -m 0644 $(CONF_DIR)/rfa.conf	$(INSTALL_CONF_DIR)
+	test -e $(INSTALL_CONF_DIR)/rfa.conf || install -m 0644 $(CONF_DIR)/rfa.conf $(INSTALL_CONF_DIR)
 
 archive: clean
 	ln -sf ./ $(VERTITLE)

+ 6 - 0
scripts/rfa

@@ -282,6 +282,12 @@ while test "x$1" != "x"; do
 	--vcs=*)
 		opts_vcs=`echo "$option" | sed 's/--vcs=//'`
 		;;
+	--git)
+		opts_vcs="git"
+		;;
+	--svn)
+		opts_vcs="svn"
+		;;
 	# Default
 	*)
 		action="$option"