mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-04 11:43:34 +02:00
CLEANUP: removed obsolete examples an move a few to better places
The following example files awere removed as irrelevant by this time : auth.cfg check.conf ssl.cfg haproxy.spec The following scripts were removed as having been unused for more than a decade : debug2ansi debug2html debugfind check init.haproxy stats_haproxy.sh seemless_reload.txt was moved to doc/ where it's more suitable. haproxy.vim was moved to contrib/syntax-highlight/ scripts/create-release was updated not to try to update haproxy.spec anymore.
This commit is contained in:
@@ -177,17 +177,6 @@ echo "Updating VERDATE ..."
|
||||
echo '$Format:%ci$' > VERDATE
|
||||
echo "$DATE" >> VERDATE
|
||||
|
||||
echo "Updating haproxy.spec ..."
|
||||
sed -e "s/^Version: .*/Version: $NEW/" < examples/haproxy.spec >examples/haproxy.spec- && mv examples/haproxy.spec- examples/haproxy.spec
|
||||
|
||||
(sed -ne '0,/^%changelog/p';
|
||||
date -d "$DATE" "+* %a %b %e %Y $GIT_COMMITTER_NAME <$GIT_COMMITTER_EMAIL>"
|
||||
echo "- updated to $(cat VERSION)"
|
||||
echo
|
||||
) < examples/haproxy.spec >examples/haproxy.spec-
|
||||
sed -ne '0,/^%changelog/d;p' < examples/haproxy.spec >>examples/haproxy.spec-
|
||||
mv examples/haproxy.spec- examples/haproxy.spec
|
||||
|
||||
# updating branch and date in all modified doc files except the outdated architecture.txt
|
||||
for file in doc/intro.txt doc/configuration.txt doc/management.txt $(git diff --name-only v${OLD}.. -- doc); do
|
||||
if [ ! -e "$file" ]; then continue; fi
|
||||
@@ -207,7 +196,7 @@ sed -e "s:^\(#define\s*PRODUCT_BRANCH\s*\)\"[^\"]*\":\1\"$BRANCH\":" \
|
||||
-i include/common/version.h
|
||||
|
||||
if [ -n "$INTERACTIVE" ]; then
|
||||
vi CHANGELOG VERSION VERDATE examples/haproxy*.spec \
|
||||
vi CHANGELOG VERSION VERDATE \
|
||||
src/haproxy.c doc/configuration.txt \
|
||||
$(git diff --name-only v${OLD}.. -- doc)
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user