3 # Simple script which does the following:
4 # o Generates a src tarball from a WORKAREA
5 # o Copies it over to ~/test and unpacks it
6 # o Generates a src tarball from src tarball
7 # o Compares the build status' ... reports problems
15 echo "WORKAREA is not set -- aborting."
21 echo "$tmpdir exists already -- aborting."
27 echo "Cannot create $tmpdir -- aborting."
33 # Pleasantries are now out of the way, lets proceed.
34 # NB: If something goes wrong we'll leave the unpacked
35 # source alone for consumption by a human.
44 echo "Problem? -- leaving $tmpdir for inspection"
56 echo Makepkgs thinks theres a problem in $1
60 if [ ! -f build/xfs-cmds-*.src.tar.gz ]
62 echo Makepkgs failed to create build/xfs-cmds-*.src.tar.gz
68 trap "_cleanup; exit \$status" 0 1 2 3 15
70 # first, build from the WORKAREA
71 _buildme $WORKAREA/cmd/xfs
73 cp $WORKAREA/cmd/xfs/build/xfs-cmds-*.src.tar.gz $tmpdir
75 tar xzf xfs-cmds-*.src.tar.gz
76 rm xfs-cmds-*.src.tar.gz # must delete for _buildme "cd" to work
78 # now, cross check the src build
79 _buildme $tmpdir/xfs-cmds-*