diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2001-08-19 00:09:06 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2001-08-19 00:09:06 +0000 |
| commit | f0dffee99942468c4ff981c8857b4de1f2273191 (patch) | |
| tree | 14180b13961c4725513437ab8071597d3eb7920c /makesrcdist | |
| parent | 286ebf903f1765b854f37e3b7c0a977d021b29ee (diff) | |
Finish fixing for Bourne shell instead of C shell.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1577 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'makesrcdist')
| -rwxr-xr-x | makesrcdist | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/makesrcdist b/makesrcdist index 87949f16d..26d973a01 100755 --- a/makesrcdist +++ b/makesrcdist @@ -11,24 +11,24 @@ MAINTAINER=easysw cd /tmp cvs -d$MAINTAINER@cvs.fltk.sourceforge.net:/cvsroot/fltk get -r v1_1 fltk >& /dev/null -if ($#argv == 0) then +if test $# = 0; then echo -n "Version number for distribution? " - set version = $< + read version else - set version = $1 -endif + version=$1 +fi rm -rf fltk-$version mv fltk fltk-$version cd fltk-$version -if ("$version" != "snapshot") then +if test x$version != snapshot; then echo "Tagging release..." set tag = `echo v$version | tr '.' '_'` cvs tag -F $tag -endif +fi echo "Making configuration script..." @@ -44,14 +44,15 @@ echo "Generating .cxx and .h files for fluid demos..." cd test cp demo.menu demod.menu -foreach file (*.fl) +for file in *.fl; do echo $file - fluid -c $file - if ($status != 0) then - echo Error executing fluid: $status + /usr/local/src/fltk-1.1/fluid/fluid -c $file + if test $? != 0; then + echo Error executing fluid: $? exit 1 - endif -end + fi +done + cd .. echo "Making UNIX distribution..." |
