Skip to content

Commit

Permalink
Update for the new way SF does rsync. Current first attempt requires the
Browse files Browse the repository at this point in the history
person doing the install to give their SF login as the value of the
make/environment variable SFUSER.  For example:

    make install SFUSER=montanaro

If you don't set SFUSER it complains loudly.
  • Loading branch information
montanaro committed Apr 2, 2010
1 parent 950fc8d commit 3f86df2
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions website/scripts/make.rules
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ TARGETS = $(filter-out *.html,$(SOURCES:%.ht=%.html)) $(EXTRA_TARGETS)

# Where to upload stuff for make install. LIVE_ROOT is the actual
# physical location of files on the server.
LIVE_HOST = shell1.sourceforge.net
LIVE_ROOT = /home/groups/s/sp/spambayes/htdocs/
LIVE_DEST = $(LIVE_HOST):$(LIVE_ROOT)/$(ROOT_OFFSET)
LIVE_HOST = web.sourceforge.net
LIVE_ROOT = htdocs
LIVE_DEST = $(SFUSER),spambayes@$(LIVE_HOST):$(LIVE_ROOT)/$(ROOT_OFFSET)

# rsync definitions.
RSYNC_RSH = ssh
Expand Down Expand Up @@ -81,6 +81,11 @@ realclean: clean
-rm $(GENERATED_HTML)

install: all local_install
@if [ -z "$(SFUSER)" ]; then \
echo "You have to specify a SourceForge username in SFUSER"; \
echo "e.g., make install SFUSER=montanaro"; \
false; \
fi
@if [ -z "$(ROOT_OFFSET)" ]; then \
echo "You have to specify a value for 'ROOT_OFFSET' in the makefile!"; \
false; \
Expand Down

0 comments on commit 3f86df2

Please sign in to comment.