Commit 94eaba7d authored by Yoshinori Okuji's avatar Yoshinori Okuji

Include bt5.

Replace version numbers automatically.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2390 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 071c11af
......@@ -42,7 +42,7 @@ while test $# -gt 0; do
for directory in "" `cd $CVS_PATH/$NAME && find * -type d -not -name "CVS" && cd -`
do echo install -d $FULL_RPM_BUILD_ROOT/%{name}/$directory | sed -e "s/\/\//\//g" >> /tmp/build-rpm-install.tmp
# then add files we want to include into the rpm
for file_type in py dtml txt png pt stx form zsql gif jpg css html props xml
for file_type in py dtml txt png pt stx form zsql gif jpg css html props xml bt5
do if (ls $CVS_PATH/$NAME/$directory/*.$file_type > /dev/null 2>&1)
then echo install %{name}-%{version}/$directory/*.$file_type $FULL_RPM_BUILD_ROOT/%{name}/$directory | sed -e "s/\/\//\//g" >> /tmp/build-rpm-install.tmp
fi
......@@ -64,7 +64,7 @@ while test $# -gt 0; do
# The total number of lines
L_TOTAL=`wc -l $NAME.spec | awk '{print $1}'`
# Take the head of the file
head -n $L_INSTALL $NAME.spec > /tmp/build-rpm-spec.tmp
head -n $L_INSTALL $NAME.spec | sed -e "s/^\(Version: *\).*/\1$VERSION/" > /tmp/build-rpm-spec.tmp
cat /tmp/build-rpm-install.tmp >> /tmp/build-rpm-spec.tmp
head -n $L_DOC $NAME.spec | tail -n `expr $L_DOC - $L_CLEAN + 1` >> /tmp/build-rpm-spec.tmp
cat /tmp/build-rpm-files.tmp >> /tmp/build-rpm-spec.tmp
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment