Create directory

You will need to also create subdirectories for sw/ and docs/. This needs to have the latest versions of all the code, so copy the files from the previous realse and update the new versions.

Example create and copy docs sub-directory
63cottrell@pinger:/afs/slac/package/pinger/pingER-2.0.3$mkdir docs
75cottrell@pinger:/afs/slac/package/pinger/pingER-2.0.3$cp ../pinger-2.0.2/docs/* docs/
Typical new directory
78cottrell@pinger:/afs/slac/package/pinger/pingER-2.0.3$ls -l
total 460
-rw-r--r-- 1 cottrell sf   299 Jun  5 17:41 AUTHORS
-rwxr-xr-x 1 cottrell sf 17992 Jun  5 17:41 COPYING*
-rw-r--r-- 1 cottrell sf   300 Jun  5 17:41 ChangeLog
-rwxr-xr-x 1 cottrell sf  9236 Jun  5 17:41 INSTALL*
-rw-r--r-- 1 cottrell sf 13724 Jun  5 18:02 Makefile
-rw-r--r-- 1 cottrell sf   781 Jun  5 17:41 Makefile.am
-rw-r--r-- 1 cottrell sf 13354 Jun  5 17:41 Makefile.in
-rw-r--r-- 1 cottrell sf     0 Jun  5 17:41 NEWS
-rw-r--r-- 1 cottrell sf  2177 Jun  5 17:41 README
-rw-r--r-- 1 cottrell sf 28052 Jun  5 17:41 aclocal.m4
-rw-r--r-- 1 cottrell sf  5465 Jun  5 18:02 config.log
-rwxr-xr-x 1 cottrell sf 21281 Jun  5 18:02 config.status*
-rwxr-xr-x 1 cottrell sf 85095 Jun  5 17:41 configure*
-rw-r--r-- 1 cottrell sf   397 Jun  5 17:41 configure.ac
drwxr-xr-x 2 cottrell sf  2048 Jun  5 18:02 docs/
-rwxr-xr-x 1 cottrell sf  5569 Jun  5 17:41 install-sh*
-rwxr-xr-x 1 cottrell sf 10270 Jun  5 17:41 missing*
-rwxr-xr-x 1 cottrell sf  1801 Jun  5 17:41 mkinstalldirs*
-rw-r--r-- 1 cottrell sf 96569 Jun  5 18:02 pinger-2.0.1.tar.gz
-rw-r--r-- 1 cottrell sf 95180 Jun  5 17:41 pinger-2.0.3.tar.gz
-rwxr-xr-x 1 cottrell sf 46714 Jun  5 17:41 pinger2.pl*
drwxr-xr-x 2 cottrell sf  2048 Jun  5 18:02 sw/
-rw-r--r-- 1 cottrell sf   143 Jun  5 17:41 testPrereqs.pl
79cottrell@pinger:/afs/slac/package/pinger/pingER-2.0.3$ls -l sw/
total 64
-rw-r--r-- 1 cottrell sf  8336 Jun  5 18:02 Makefile
-rw-r--r-- 1 cottrell sf  7942 Jun  5 17:42 Makefile-20130605.in
-rw-r--r-- 1 cottrell sf   948 Jun  5 17:42 Makefile.am
-rw-r--r-- 1 cottrell sf  7962 Jun  5 17:42 Makefile.in
-rw-r--r-- 1 cottrell sf 16844 Jun  5 17:42 beacons.txt
-rw-r--r-- 1 cottrell sf   300 Jun  5 17:42 dnsV4Cmd.pl
-rwxr-xr-x 1 cottrell sf   284 Jun  5 17:42 dnsV4Cmd.pl.default*
-rwxr-xr-x 1 cottrell sf  5385 Jun  5 17:42 installCron.pl*
-rwxr-xr-x 1 cottrell sf  3785 Jun  5 17:42 installPingerXML.pl*
-rw-r--r-- 1 cottrell sf  1532 Jun  5 17:42 pinger.xml
-rw-r--r-- 1 cottrell sf  1373 Jun  5 17:42 pinger.xml.default
-rw-r--r-- 1 cottrell sf  2512 Jun  5 17:42 pinger.xsd
-rwxr-xr-x 1 cottrell sf    70 Jun  5 17:42 pinger2*
lrwxr-xr-x 1 cottrell sf    56 Jun  5 17:46 pinger2.pl -> /afs/slac/package/pinger/pinger2/share/pinger/pinger2.pl*
80cottrell@pinger:/afs/slac/package/pinger/pingER-2.0.3$ls -l docs
total 81
-rw-r--r-- 1 cottrell sf  8188 Jun  5 18:02 Makefile
-rw-r--r-- 1 cottrell sf   233 Jun  5 18:02 Makefile.am
-rw-r--r-- 1 cottrell sf  7812 Jun  5 18:02 Makefile.in
-rw-r--r-- 1 cottrell sf 30330 Jun  5 18:02 pinger2.1
-rw-r--r-- 1 cottrell sf 34443 Jun  5 18:02 pinger2.html

Run configure

76cottrell@pinger:/afs/slac/package/pinger/pingER-2.0.3$./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for bash... /bin/sh
checking for perl... /usr/local/bin/perl
checking for ping... /bin/ping
checking for ping6... /bin/ping6
checking for dig... /usr/bin/dig
checking for lynx... /usr/local/bin/lynx
checking for mail... /bin/mail
configure: creating ./config.status
config.status: creating Makefile
config.status: creating sw/Makefile
config.status: creating docs/Makefile

This creates the Makefile. Inside the makefile is a line of the form



VERSION = 2.0.3

which will need editing.

Make zipped tarball

77cottrell@pinger:/afs/slac/package/pinger/pingER-2.0.3$make dist-gzip
{ test ! -d pinger-2.0.1 || { find pinger-2.0.1 -type d ! -perm -200 -exec chmod u+w {} ';' && rm -fr pinger-2.0.1; }; }
mkdir pinger-2.0.1
list='sw docs'; for subdir in $list; do \
          if test "$subdir" = .; then :; else \
            test -d pinger-2.0.1/$subdir \
            || mkdir pinger-2.0.1/$subdir \
            || exit 1; \
            (cd $subdir && \
              make  \
                top_distdir="." \
                distdir=../pinger-2.0.1/$subdir \
                distdir) \
              || exit 1; \
          fi; \
        done
make[1]: Entering directory `/afs/slac.stanford.edu/package/pinger/pingER-2.0.3/sw'
make[1]: Leaving directory `/afs/slac.stanford.edu/package/pinger/pingER-2.0.3/sw'
make[1]: Entering directory `/afs/slac.stanford.edu/package/pinger/pingER-2.0.3/docs'
make[1]: Leaving directory `/afs/slac.stanford.edu/package/pinger/pingER-2.0.3/docs'
find pinger-2.0.1 -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
          ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
          ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
          ! -type d ! -perm -444 -exec /bin/sh /afs/slac/package/pinger/pingER-2.0.3/install-sh -c -m a+r {} {} \; \
        || chmod -R a+r pinger-2.0.1
/bin/sh /afs/slac/package/pinger/pingER-2.0.3/missing --run tar chof - pinger-2.0.1 | GZIP=--best gzip -c >pinger-2.0.1.tar.gz
{ test ! -d pinger-2.0.1 || { find pinger-2.0.1 -type d ! -perm -200 -exec chmod u+w {} ';' && rm -fr pinger-2.0.1; }; }

Result

82cottrell@pinger:/afs/slac/package/pinger/pingER-2.0.3$ls -l *tar.gz

-rw-r--r-- 1 cottrell sf 96569 Jun  5 18:02 pinger-2.0.1.tar.gz
-rw-r--r-- 1 cottrell sf 95180 Jun  5 17:41 pinger-2.0.3.tar.gz

Verifying

You can untar the tarbal

$cp  pinger-2.0.1.tar.gz /tmp/

86cottrell@pinger:/afs/slac/package/pinger/pingER-2.0.3$gunzip /tmp/pinger-2.0.1.tar.gz
85cottrell@pinger:/afs/slac/package/pinger/pingER-2.0.3$cp  pinger-2.0.1.tar.gz /tmp/
$cd /tmp
$gunzip /tmp/pinger-2.0.1.tar.gz
$vim /tmp/pinger-2.0.1.tar

Then look at the relevant changed file and ensure it is correct

" tar.vim version v23b
" Browsing tarfile /tmp/pinger-2.0.1.tar
" Select a file with cursor and press ENTER
pinger-2.0.1/
pinger-2.0.1/README
pinger-2.0.1/AUTHORS
pinger-2.0.1/COPYING
pinger-2.0.1/ChangeLog
pinger-2.0.1/INSTALL
pinger-2.0.1/Makefile.am
pinger-2.0.1/Makefile.in
pinger-2.0.1/NEWS
pinger-2.0.1/aclocal.m4
pinger-2.0.1/configure
pinger-2.0.1/configure.ac
pinger-2.0.1/install-sh
pinger-2.0.1/missing
pinger-2.0.1/mkinstalldirs
pinger-2.0.1/testPrereqs.pl
pinger-2.0.1/sw/
pinger-2.0.1/sw/Makefile.am
pinger-2.0.1/sw/Makefile.in
pinger-2.0.1/sw/pinger2.pl
pinger-2.0.1/sw/pinger.xsd
pinger-2.0.1/sw/pinger.xml
pinger-2.0.1/sw/dnsV4Cmd.pl
pinger-2.0.1/sw/beacons.txt
pinger-2.0.1/sw/installCron.pl
pinger-2.0.1/sw/pinger.xml.default
pinger-2.0.1/sw/dnsV4Cmd.pl.default
pinger-2.0.1/sw/installPingerXML.pl
pinger-2.0.1/docs/
pinger-2.0.1/docs/Makefile.am
pinger-2.0.1/docs/Makefile.in
pinger-2.0.1/docs/pinger2.1
pinger-2.0.1/docs/pinger2.html

" tar.vim version v23b

" Browsing tarfile /tmp/pinger-2.0.1.tar

" Select a file with cursor and press ENTER

 pinger-2.0.1/

pinger-2.0.1/README

pinger-2.0.1/AUTHORS

pinger-2.0.1/COPYING

pinger-2.0.1/ChangeLog

pinger-2.0.1/INSTALL

pinger-2.0.1/Makefile.am

pinger-2.0.1/Makefile.in

pinger-2.0.1/NEWS

pinger-2.0.1/aclocal.m4

pinger-2.0.1/configure

pinger-2.0.1/configure.ac

pinger-2.0.1/install-sh

pinger-2.0.1/missing

pinger-2.0.1/mkinstalldirs

pinger-2.0.1/testPrereqs.pl

pinger-2.0.1/sw/

pinger-2.0.1/sw/Makefile.am

pinger-2.0.1/sw/Makefile.in

pinger-2.0.1/sw/pinger2.pl

pinger-2.0.1/sw/pinger.xsd

pinger-2.0.1/sw/pinger.xml

pinger-2.0.1/sw/dnsV4Cmd.pl

pinger-2.0.1/sw/beacons.txt

pinger-2.0.1/sw/installCron.pl

pinger-2.0.1/sw/pinger.xml.default

pinger-2.0.1/sw/dnsV4Cmd.pl.default

pinger-2.0.1/sw/installPingerXML.pl

pinger-2.0.1/docs/

pinger-2.0.1/docs/Makefile.am

pinger-2.0.1/docs/Makefile.in

pinger-2.0.1/docs/pinger2.1

pinger-2.0.1/docs/pinger2.html

  • No labels