File: MakeDist

package info (click to toggle)
cfengine 1.4.9-3
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 3,540 kB
  • ctags: 1,861
  • sloc: ansic: 25,408; sh: 1,708; perl: 1,088; lex: 690; makefile: 435; lisp: 182; yacc: 101; csh: 24
file content (45 lines) | stat: -rwxr-xr-x 1,048 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/csh -f

# This is mainly for me and my sun workstation.
# Since I am not encouraging anyone to make their own distributions
# this lack of generality doesn't bother me.

set cfpath = ~/comp/GNU-cfengine
set version = ( `/bin/cat $cfpath/version` )

echo "Did you remember to build the .ps dox??????"

if ( ! -f $cfpath/doc/cfengine.ps ) then

  echo Nope

endif

(cd $cfpath; find -name '*~' -exec rm -f {} \;)

echo Making tmp directory...$version

mkdir ~/$version

cd $cfpath

echo Copying files in `pwd`

tar cf - . | ( cd ~/$version; tar xvf - )

cd ~

(cd $version; chmod 755 * .; chmod 644 VERSION.DIFF acconfig.h version Makefile.in README configure.in;  )
(cd $version/inputs; chmod 644 * )
(cd $version/src; chmod 644 * ; rm -f .nfs* )
(cd $version/bin; chmod 644 *; chmod 755 mkinstalldirs MakeDist)
(cd $version/pub; chmod 644 *)
(cd $version/contrib; chmod 644 *; )
(cd $version/doc; chmod 644 * )
(cd $version/tests; chmod 644 *)

tar zcf $version.tar.gz $version
rm -r $version


echo New distribution is $version.tar.gz in ~