[spin-kickstarts] Fix typo in tar ball name
by Bruno Wolff III
commit 93e94db57a150c9e661481b690626d0610d2ad1c
Author: Bruno Wolff III <bruno(a)wolff.to>
Date: Sat Jun 29 13:55:02 2013 -0500
Fix typo in tar ball name
Makefile | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/Makefile b/Makefile
index 7b25a9c..8762c35 100644
--- a/Makefile
+++ b/Makefile
@@ -11,7 +11,7 @@ clean:
rm -f spin-kickstarts-*.tar.gz
dist:
- git archive --format=tar --prefix=spin-kickstarts-$(version)/ HEAD | gzip > spin-kickstarts.tar-$(version).gz
+ git archive --format=tar --prefix=spin-kickstarts-$(version)/ HEAD | gzip > spin-kickstarts-$(version).tar.gz
publish:
scp spin-kickstarts-$(version).tar.gz fedorahosted.org:spin-kickstarts
10 years, 10 months
[spin-kickstarts] Add a make publish function
by Bruno Wolff III
commit cb29cc9c18ddb5e8e8c36f7532104a1bf445a5d0
Author: Bruno Wolff III <bruno(a)wolff.to>
Date: Sat Jun 29 13:53:08 2013 -0500
Add a make publish function
Makefile | 3 +++
README | 2 +-
2 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/Makefile b/Makefile
index 6cc8d7b..7b25a9c 100644
--- a/Makefile
+++ b/Makefile
@@ -13,5 +13,8 @@ clean:
dist:
git archive --format=tar --prefix=spin-kickstarts-$(version)/ HEAD | gzip > spin-kickstarts.tar-$(version).gz
+publish:
+ scp spin-kickstarts-$(version).tar.gz fedorahosted.org:spin-kickstarts
+
dist-clean:
git clean -f -d
diff --git a/README b/README
index 9dac761..4b35b8a 100644
--- a/README
+++ b/README
@@ -18,6 +18,6 @@ git tag VERSION
git push --tags
make
# Publish the released tar ball
-scp spin-kickstarts-*.tar.gz fedorahosted.org:spin-kickstarts
+make publish
# Clean up the generated files:
make clean
10 years, 10 months
[spin-kickstarts] Fix pushing tags instruction
by Bruno Wolff III
commit 3d2542b16d1d3da4c7a075ab6cf434f83cb32019
Author: Bruno Wolff III <bruno(a)wolff.to>
Date: Sat Jun 29 13:49:01 2013 -0500
Fix pushing tags instruction
README | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/README b/README
index 9c98165..9dac761 100644
--- a/README
+++ b/README
@@ -15,7 +15,7 @@ cd spin-kickstarts
git checkout BRANCHNAME
# No tag has been added yet tag HEAD with
git tag VERSION
-git push tag VERSION
+git push --tags
make
# Publish the released tar ball
scp spin-kickstarts-*.tar.gz fedorahosted.org:spin-kickstarts
10 years, 10 months
[spin-kickstarts] Use a git hash for the version if HEAD isn't tagged
by Bruno Wolff III
commit a74dac72d4b01004498a539705095cad6254e8a8
Author: Bruno Wolff III <bruno(a)wolff.to>
Date: Sat Jun 29 13:44:27 2013 -0500
Use a git hash for the version if HEAD isn't tagged
Makefile | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/Makefile b/Makefile
index baadf3b..6cc8d7b 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,17 @@
+# Get the version name first by seeing if HEAD is tagged
+version := $(shell git tag --points-at HEAD)
+# And if it wasn't use a git hash
+ifeq ($(version),)
+ version := $(shell git log -1 --abbrev=8 --pretty=git%h)
+endif
+
all: dist
clean:
rm -f spin-kickstarts-*.tar.gz
dist:
- git archive --format=tar --prefix=spin-kickstarts-`git tag --points-at HEAD`/ HEAD | gzip > spin-kickstarts.tar-`git tag --points-at HEAD`.gz
+ git archive --format=tar --prefix=spin-kickstarts-$(version)/ HEAD | gzip > spin-kickstarts.tar-$(version).gz
dist-clean:
git clean -f -d
10 years, 10 months
[spin-kickstarts] Add a dist-clean function for a fuller clean up
by Bruno Wolff III
commit 233dc11b5e48a0995e565d8dc45abaad69579a63
Author: Bruno Wolff III <bruno(a)wolff.to>
Date: Sat Jun 29 12:47:10 2013 -0500
Add a dist-clean function for a fuller clean up
Makefile | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/Makefile b/Makefile
index d779afd..baadf3b 100644
--- a/Makefile
+++ b/Makefile
@@ -5,3 +5,6 @@ clean:
dist:
git archive --format=tar --prefix=spin-kickstarts-`git tag --points-at HEAD`/ HEAD | gzip > spin-kickstarts.tar-`git tag --points-at HEAD`.gz
+
+dist-clean:
+ git clean -f -d
10 years, 10 months
[spin-kickstarts] The prefix should end with a /
by Bruno Wolff III
commit 1ecb6e9f61c4b32015038171cc2c82aed5b74e56
Author: Bruno Wolff III <bruno(a)wolff.to>
Date: Sat Jun 29 12:43:28 2013 -0500
The prefix should end with a /
Makefile | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/Makefile b/Makefile
index f22611b..d779afd 100644
--- a/Makefile
+++ b/Makefile
@@ -4,4 +4,4 @@ clean:
rm -f spin-kickstarts-*.tar.gz
dist:
- git archive --format=tar --prefix=spin-kickstarts-`git tag --points-at HEAD` HEAD | gzip > spin-kickstarts.tar-`git tag --points-at HEAD`.gz
+ git archive --format=tar --prefix=spin-kickstarts-`git tag --points-at HEAD`/ HEAD | gzip > spin-kickstarts.tar-`git tag --points-at HEAD`.gz
10 years, 10 months
[spin-kickstarts] Have make use tags to name tar ball
by Bruno Wolff III
commit 1565631961838b4689d0f47c3af28e8097171330
Author: Bruno Wolff III <bruno(a)wolff.to>
Date: Sat Jun 29 12:42:13 2013 -0500
Have make use tags to name tar ball
Makefile | 6 ++++--
README | 7 +++++--
2 files changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/Makefile b/Makefile
index 6f81545..f22611b 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,7 @@
+all: dist
+
clean:
- rm -f spin-kickstarts.tar.gz
+ rm -f spin-kickstarts-*.tar.gz
dist:
- git archive --format=tar --prefix=spin-kickstarts HEAD | gzip > spin-kickstarts.tar.gz
+ git archive --format=tar --prefix=spin-kickstarts-`git tag --points-at HEAD` HEAD | gzip > spin-kickstarts.tar-`git tag --points-at HEAD`.gz
diff --git a/README b/README
index ebd9fb5..9c98165 100644
--- a/README
+++ b/README
@@ -13,8 +13,11 @@ git clone ssh://git.fedorahosted.org/git/spin-kickstarts.git spin-kickstarts
cd spin-kickstarts
# If you need a specific branch other than master:
git checkout BRANCHNAME
-make dist
+# No tag has been added yet tag HEAD with
+git tag VERSION
+git push tag VERSION
+make
# Publish the released tar ball
scp spin-kickstarts-*.tar.gz fedorahosted.org:spin-kickstarts
# Clean up the generated files:
-git clean -f -d
+make clean
10 years, 10 months