]> Lady’s Gitweb - Status/blob - Makefile
New status @ 2024-05-11T16:05:51-04: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 pull
10 git remote add upstream $(X_STATUS_GIT)
11 git fetch upstream
12 git checkout --detach upstream/current
13 git reset --soft $(FIRST_COMMIT)
14 git commit --amend --no-edit
15 git tag base
16 git checkout live
17 git rebase --onto base $(FIRST_COMMIT)
18 git tag --delete base
19 git remote remove upstream
20
21 clean:
22 git remote remove upstream || true
23 git tag --delete base || true
24 git checkout live
25
26 remote:
27 scp post-receive computer:/srv/git/Status/hooks/post-receive
28
29 .PHONY: nothing remote update clean ;
This page took 0.045702 seconds and 5 git commands to generate.