1 X_STATUS_GIT = https://git.ladys.computer/x_status_git.git
 
   3 update: FIRST_COMMIT = $(shell git rev-list --max-parents=0 live)
 
   6         @echo 'Type `make remote` to update the remote post-receive script.'
 
  10         git remote add upstream $(X_STATUS_GIT)
 
  12         git checkout --detach upstream/current
 
  13         git reset --soft $(FIRST_COMMIT)
 
  14         git commit --amend --no-edit
 
  17         git rebase --onto base $(FIRST_COMMIT)
 
  19         git remote remove upstream
 
  22         git remote remove upstream || true
 
  23         git tag --delete base || true
 
  27         scp post-receive computer:/srv/git/Status/hooks/post-receive
 
  29 .PHONY: nothing remote update clean ;