aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorroot <root@lamia.panaceas.james.local>2017-01-16 12:15:12 +0000
committerroot <root@lamia.panaceas.james.local>2017-01-16 12:15:12 +0000
commit8ee35c49abfcc5118b085fe63994b533944b4595 (patch)
treeee13b96b27e9dacc454edf90ef94d37bacce9528
parentd3e1d3a645885f5721a060902e9c09c5f202c561 (diff)
downloadtwa_t-8ee35c49abfcc5118b085fe63994b533944b4595.tar.gz
twa_t-8ee35c49abfcc5118b085fe63994b533944b4595.tar.bz2
twa_t-8ee35c49abfcc5118b085fe63994b533944b4595.zip
maintainer scripts
-rwxr-xr-xmaintainer/bootstrap15
-rwxr-xr-xmaintainer/make_distn13
-rwxr-xr-xmaintainer/tag29
-rwxr-xr-xmaintainer/tidy26
4 files changed, 83 insertions, 0 deletions
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 <foss@madingley.org>,
+# 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 <foss@madingley.org>,
+# 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 <foss@madingley.org>,
+# 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 <foss@madingley.org>,
+# 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
+