projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
fe6f588
)
keep version in FS.pm instead of Makefile
author
Ivan Kohler
<ivan@freeside.biz>
Sat, 2 Jun 2012 23:46:23 +0000
(16:46 -0700)
committer
Ivan Kohler
<ivan@freeside.biz>
Sat, 2 Jun 2012 23:46:23 +0000
(16:46 -0700)
FS/FS.pm
patch
|
blob
|
history
Makefile
patch
|
blob
|
history
diff --git
a/FS/FS.pm
b/FS/FS.pm
index
c3a1ac2
..
1aa10c1
100644
(file)
--- a/
FS/FS.pm
+++ b/
FS/FS.pm
@@
-3,7
+3,7
@@
package FS;
use strict;
use vars qw($VERSION);
use strict;
use vars qw($VERSION);
-$VERSION = '
%%%VERSION%%%
';
+$VERSION = '
2.3.3
';
#find missing entries in this file with:
# for a in `ls *pm | cut -d. -f1`; do grep 'L<FS::'$a'>' ../FS.pm >/dev/null || echo "missing $a" ; done
#find missing entries in this file with:
# for a in `ls *pm | cut -d. -f1`; do grep 'L<FS::'$a'>' ../FS.pm >/dev/null || echo "missing $a" ; done
diff --git
a/Makefile
b/Makefile
index
7207c2f
..
dc86c60
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-115,8
+115,8
@@
RT_PATH = /opt/rt3
FREESIDE_PATH = `pwd`
PERL_INC_DEV_KLUDGE = /usr/local/share/perl/5.14.2/
FREESIDE_PATH = `pwd`
PERL_INC_DEV_KLUDGE = /usr/local/share/perl/5.14.2/
-VERSION=
2.3.3git
-TAG=freeside_
2_3_3
+VERSION=
`grep '^$VERSION' FS/FS.pm | cut -d\' -f2`
+TAG=freeside_
`echo ${VERSION} | perl -pe 's/\./_/g'`
DEBVERSION = `echo ${VERSION} | perl -pe 's/(\d)([a-z])/\1~\2/'`-1
DEBVERSION = `echo ${VERSION} | perl -pe 's/(\d)([a-z])/\1~\2/'`-1
@@
-179,9
+179,6
@@
perl-modules:
cd FS; \
[ -e Makefile ] || perl Makefile.PL; \
make; \
cd FS; \
[ -e Makefile ] || perl Makefile.PL; \
make; \
- perl -p -i -e "\
- s/%%%VERSION%%%/${VERSION}/g;\
- " blib/lib/FS.pm;\
perl -p -i -e "\
s|%%%FREESIDE_CONF%%%|${FREESIDE_CONF}|g;\
s|%%%FREESIDE_CACHE%%%|${FREESIDE_CACHE}|g;\
perl -p -i -e "\
s|%%%FREESIDE_CONF%%%|${FREESIDE_CONF}|g;\
s|%%%FREESIDE_CACHE%%%|${FREESIDE_CACHE}|g;\