aboutsummaryrefslogtreecommitdiffstats
path: root/maintainer
diff options
context:
space:
mode:
Diffstat (limited to 'maintainer')
-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
+