comparison version.sh @ 102:08bc9009d190 embedded

Merged with default
author Pedro Ferreira <pedro.ferreira@monetdbsolutions.com>
date Fri, 13 Jan 2017 18:16:30 +0100 (2017-01-13)
parents 6f74e01c57da b9b35ca2eec2
children 5b13ccaba741
comparison
equal deleted inserted replaced
101:551093abca52 102:08bc9009d190
95 -e "s|version ${ESC_MAJOR}\.${ESC_MINOR} (${ESC_SUFFIX}|version ${NEW_MAJOR}.${NEW_MINOR} \(${NEW_SUFFIX}|g" \ 95 -e "s|version ${ESC_MAJOR}\.${ESC_MINOR} (${ESC_SUFFIX}|version ${NEW_MAJOR}.${NEW_MINOR} \(${NEW_SUFFIX}|g" \
96 -e "s|${TYPE}-${ESC_MAJOR}\.${ESC_MINOR}|${TYPE}-${NEW_MAJOR}.${NEW_MINOR}|g" \ 96 -e "s|${TYPE}-${ESC_MAJOR}\.${ESC_MINOR}|${TYPE}-${NEW_MAJOR}.${NEW_MINOR}|g" \
97 -e "s|Release date: 20[0-9][0-9]-[01][0-9]-[0-3][0-9]|Release date: `date +%F`|" \ 97 -e "s|Release date: 20[0-9][0-9]-[01][0-9]-[0-3][0-9]|Release date: `date +%F`|" \
98 ${file} | ${diff} ${file} - | ${patch} 98 ${file} | ${diff} ${file} - | ${patch}
99 99
100 for file in \
101 Makefile.ag \
102 ; do
103 if [[ -f ${file} ]] ; then
104 for f in $FILES ; do
105 fr=${f//XXX/${NEW_MAJOR}.${NEW_MINOR}}
106 fo=${f//XXX/${ESC_MAJOR}.${ESC_MINOR}}
107 fo=${fo//./\\.}
108 sed -e "s|${fo}|${fr}|g" \
109 ${file} | ${diff} ${file} - | ${patch}
110 done
111 else
112 echo "Please do not forget to patch file '${file##*../}', too."
113 fi
114 done
115
116 file="build.properties" 100 file="build.properties"
117 sed \ 101 sed \
118 -e "s|${TYPE}_MAJOR=${ESC_MAJOR}|${TYPE}_MAJOR=${NEW_MAJOR}|g" \ 102 -e "s|${TYPE}_MAJOR=${ESC_MAJOR}|${TYPE}_MAJOR=${NEW_MAJOR}|g" \
119 -e "s|${TYPE}_MINOR=${ESC_MINOR}|${TYPE}_MINOR=${NEW_MINOR}|g" \ 103 -e "s|${TYPE}_MINOR=${ESC_MINOR}|${TYPE}_MINOR=${NEW_MINOR}|g" \
120 -e "s|${TYPE}_VER_SUFFIX=${ESC_SUFFIX}|${TYPE}_VER_SUFFIX=${NEW_SUFFIX}|g" \ 104 -e "s|${TYPE}_VER_SUFFIX=${ESC_SUFFIX}|${TYPE}_VER_SUFFIX=${NEW_SUFFIX}|g" \