1 |
Author: zzam |
2 |
Date: 2008-04-20 19:40:28 +0000 (Sun, 20 Apr 2008) |
3 |
New Revision: 592 |
4 |
|
5 |
Added: |
6 |
gentoo-vdr-scripts/trunk/bump.sh |
7 |
Modified: |
8 |
gentoo-vdr-scripts/trunk/ChangeLog |
9 |
gentoo-vdr-scripts/trunk/Makefile |
10 |
Log: |
11 |
Added info make-target. Added bump helper script. |
12 |
|
13 |
Modified: gentoo-vdr-scripts/trunk/ChangeLog |
14 |
=================================================================== |
15 |
--- gentoo-vdr-scripts/trunk/ChangeLog 2008-04-20 18:59:03 UTC (rev 591) |
16 |
+++ gentoo-vdr-scripts/trunk/ChangeLog 2008-04-20 19:40:28 UTC (rev 592) |
17 |
@@ -1,6 +1,9 @@ |
18 |
# ChangeLog for gentoo-vdr-scripts |
19 |
# $Id$ |
20 |
|
21 |
+ 20 Apr 2008; Matthias Schwarzott <zzam@g.o> Makefile, +bump.sh: |
22 |
+ Added info make-target. Added bump helper script. |
23 |
+ |
24 |
20 Apr 2008; Matthias Schwarzott <zzam@g.o> |
25 |
usr/sbin/acpi-wakeup.sh: |
26 |
More baselayout-2 fixes for acpi wakeup. Fixes wrong utc detection. |
27 |
|
28 |
Modified: gentoo-vdr-scripts/trunk/Makefile |
29 |
=================================================================== |
30 |
--- gentoo-vdr-scripts/trunk/Makefile 2008-04-20 18:59:03 UTC (rev 591) |
31 |
+++ gentoo-vdr-scripts/trunk/Makefile 2008-04-20 19:40:28 UTC (rev 592) |
32 |
@@ -17,6 +17,12 @@ |
33 |
ARCHIVE = gentoo-vdr-scripts-$(VERSION) |
34 |
PACKAGE = $(ARCHIVE) |
35 |
|
36 |
+info: |
37 |
+ @echo VERSION: $(VERSION) |
38 |
+ @[ -d ../tags/$(VERSION) ] && echo "Already tagged in svn" |
39 |
+ @echo |
40 |
+ @[ -d .svn ] && svn info |
41 |
+ |
42 |
dist: |
43 |
@-rm -rf $(TMPDIR)/$(ARCHIVE) |
44 |
@svn export . $(TMPDIR)/$(ARCHIVE) |
45 |
|
46 |
Added: gentoo-vdr-scripts/trunk/bump.sh |
47 |
=================================================================== |
48 |
--- gentoo-vdr-scripts/trunk/bump.sh (rev 0) |
49 |
+++ gentoo-vdr-scripts/trunk/bump.sh 2008-04-20 19:40:28 UTC (rev 592) |
50 |
@@ -0,0 +1,37 @@ |
51 |
+#!/bin/bash |
52 |
+OLDVERS="$(grep '^Version' README | awk '{ print $2 }')" |
53 |
+NEWVERS="$1" |
54 |
+ |
55 |
+echo "Updating from $OLDVERS to $NEWVERS" |
56 |
+ |
57 |
+if [[ "$NEWVERS" == "" ]]; then |
58 |
+ echo "Please specify new version" |
59 |
+ exit 1 |
60 |
+fi |
61 |
+ |
62 |
+if [[ ! -d ../tags/"${OLDVERS}" ]]; then |
63 |
+ echo "WARNING: Old version $OLDVERS is not tagged" |
64 |
+fi |
65 |
+ |
66 |
+if [[ -d ../tags/"${NEWVERS}" ]]; then |
67 |
+ echo "new version $NEWVERS is already tagged" |
68 |
+ exit 1 |
69 |
+fi |
70 |
+ |
71 |
+sed -e "s/^Version.*/Version ${NEWVERS}/" -i README |
72 |
+ |
73 |
+today=$(LC_ALL=C date +"%d %b %Y") |
74 |
+ |
75 |
+sed -e "3a\\ |
76 |
+*gentoo-vdr-scripts-${NEWVERS} (${today})\\ |
77 |
+" -i ChangeLog |
78 |
+ |
79 |
+echo "Commiting bump" |
80 |
+svn commit -m "Bumped to version ${NEWVERS}" ChangeLog README |
81 |
+ |
82 |
+ |
83 |
+cd .. |
84 |
+echo "svn copy" |
85 |
+svn copy trunk "tags/${NEWVERS}" |
86 |
+svn commit -m "Tagged version ${NEWVERS}" tags/${NEWVERS}" |
87 |
+ |
88 |
|
89 |
|
90 |
Property changes on: gentoo-vdr-scripts/trunk/bump.sh |
91 |
___________________________________________________________________ |
92 |
Name: svn:executable |
93 |
+ * |
94 |
|
95 |
-- |
96 |
gentoo-commits@l.g.o mailing list |