From 8ee35c49abfcc5118b085fe63994b533944b4595 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 16 Jan 2017 12:15:12 +0000 Subject: maintainer scripts --- maintainer/bootstrap | 15 +++++++++++++++ maintainer/make_distn | 13 +++++++++++++ maintainer/tag | 29 +++++++++++++++++++++++++++++ maintainer/tidy | 26 ++++++++++++++++++++++++++ 4 files changed, 83 insertions(+) create mode 100755 maintainer/bootstrap create mode 100755 maintainer/make_distn create mode 100755 maintainer/tag create mode 100755 maintainer/tidy (limited to 'maintainer') diff --git a/maintainer/bootstrap b/maintainer/bootstrap new file mode 100755 index 0000000..4c21c24 --- /dev/null +++ b/maintainer/bootstrap @@ -0,0 +1,15 @@ +#!/bin/sh +# +# bootstrap: +# +# Copyright (c) 2017 James McKenzie , +# All rights reserved. +# +# +#libtoolize -f -c --automake +aclocal +autoheader +autoconf +automake -a -c +automake -a -c Makefile +automake -a -c src/Makefile diff --git a/maintainer/make_distn b/maintainer/make_distn new file mode 100755 index 0000000..09f9076 --- /dev/null +++ b/maintainer/make_distn @@ -0,0 +1,13 @@ +#!/bin/sh +# +# make_distn: +# +# Copyright (c) 2017 James McKenzie , +# All rights reserved. +# +# +# +./maintainer/bootstrap +./configure +make dist +make distclean diff --git a/maintainer/tag b/maintainer/tag new file mode 100755 index 0000000..b002834 --- /dev/null +++ b/maintainer/tag @@ -0,0 +1,29 @@ +#!/bin/sh +# +# tag: +# +# Copyright (c) 2017 James McKenzie , +# All rights reserved. +# +# +# +git commit -a -m "tagging" + +FILES=`cat version-files` +CHK=`cat $FILES | md5sum | awk '{print $1}'` +TG=`grep $CHK version-md5sums | awk '{print $2}'` +if [ .$TG != . ]; then + echo This code already tagged as Version $TG + exit 0 +fi + +MAJOR=`cat version-major` +MINOR=`cat version-minor` +MICRO=$[ `cat version-micro` + 1 ] + +echo $MICRO > version-micro + +echo "$CHK ${MAJOR}.${MINOR}.${MICRO}" >> version-md5sums + +git commit -a -m "tagging" +git tag twa_t-$MAJOR_$MINOR_$MICRO diff --git a/maintainer/tidy b/maintainer/tidy new file mode 100755 index 0000000..072dc35 --- /dev/null +++ b/maintainer/tidy @@ -0,0 +1,26 @@ +#!/bin/sh +# +# tidy: +# +# Copyright (c) 2017 James McKenzie , +# All rights reserved. +# +# +# +if [ -f Makefile ]; then + make distclean +fi + +#for i in acconfig.h AUTHORS bstrap ChangeLog configure.in COPYING INSTALL mdist NEWS README tidy src/config.h.in `find . -name Makefile.am -print` `find . -name \*.[ch] -print` ; do +# if [ -f $i ]; then +# gimme $i +# fi +#done + +find . -name \*.[ch] -print | xargs indent -i2 -ts0 + +find . -name \*~ -print| xargs /bin/rm -f +find . -name \*.BAK -print| xargs /bin/rm -f +find . -name a.out -print| xargs /bin/rm -f +find . -name core -print| xargs /bin/rm -f + -- cgit v1.2.3