/[sysadmin-cookbook]/recepies/etherpuppet/build-arch.sh
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /recepies/etherpuppet/build-arch.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 127 - (hide annotations)
Sat Aug 15 01:19:39 2009 UTC (14 years, 9 months ago) by dpavlin
File MIME type: application/x-sh
File size: 501 byte(s)
build ether puppet for different arhitectures using Firmware Linux
1 dpavlin 127 #!/bin/sh -x
2    
3     arch=$1
4     fwl=/virtual/fwl/
5    
6     wget -m -nd -nH http://hg.secdev.org/etherpuppet/raw-file/tip/etherpuppet.c || exit
7    
8     path="$fwl/cross-compiler-$arch"
9    
10     if [ ! -e $path ] ; then
11     cd $fwl || exit
12     wget -m -nd -nH http://impactlinux.com/fwl/downloads/binaries/cross-compiler/host-i686/cross-compiler-$arch.tar.bz2 || exit
13     tar xvfj cross-compiler-$arch.tar.bz2
14     cd -
15     fi
16    
17     PATH=$path/bin:$PATH
18     $arch-gcc -static -o etherpuppet-$arch etherpuppet.c
19    
20     ls -al etherpuppet-$arch
21     file etherpuppet-$arch

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26