]> Lady’s Gitweb - Status/blob - Makefile
New status @ 2023-12-21T22:21:54-05:00
[Status] / Makefile
1 X_STATUS_GIT = https://git.ladys.computer/x_status_git.git
2
3 update: FIRST_COMMIT = $(shell git rev-list --max-parents=0 live)
4
5 nothing:
6 @echo 'Type `make remote` to update the remote post-receive script.'
7
8 update:
9 git remote add upstream $(X_STATUS_GIT)
10 git fetch upstream
11 git checkout --detach upstream/current
12 git reset --soft $(FIRST_COMMIT)
13 git commit --amend --no-edit
14 git tag base
15 git checkout live
16 git rebase --onto base $(FIRST_COMMIT)
17 git tag --delete base
18 git remote remove upstream
19
20 clean:
21 git remote remove upstream || true
22 git tag --delete base || true
23 git checkout live
24
25 remote:
26 scp post-receive computer:/srv/git/Status/hooks/post-receive
27
28 .PHONY: nothing remote update clean ;
This page took 0.063492 seconds and 5 git commands to generate.