packages/ssoinabox-webui/build
changeset 0 3906ca745819
equal deleted inserted replaced
-1:000000000000 0:3906ca745819
       
     1 #!/bin/bash
       
     2 # :mode=shellscript:
       
     3 set -e
       
     4 
       
     5 #oldcwd="`pwd`"
       
     6 
       
     7 #mkdir root
       
     8 
       
     9 #cd /
       
    10 #tar c \
       
    11 #	--exclude=\*~ \
       
    12 #	--exclude=usr/local/share/ssoinabox/htdocs/includes/templates/compiled \
       
    13 #	-f - \
       
    14 #	etc/cron.d/ssoinabox \
       
    15 #	usr/local/share/ssoinabox \
       
    16 #	usr/local/share/weblogin/ssoinabox \
       
    17 #	| \
       
    18 #		tar xCf "$oldcwd/root" -
       
    19 
       
    20 #cd "$oldcwd"
       
    21 cp -a DEBIAN root/
       
    22 cd root
       
    23 version="`cat DEBIAN/control | grep ^Version: | sed -re 's/^Version: //'`"
       
    24 pkgname="`cat DEBIAN/control | grep ^Package: | sed -re 's/^Package: //'`"
       
    25 arch="`cat DEBIAN/control | grep ^Architecture: | sed -re 's/^Architecture: //'`"
       
    26 
       
    27 find . -name \*~ | xargs rm -f
       
    28 
       
    29 dpkg -b . ../${pkgname}_${version}_${arch}.deb
       
    30 
       
    31 rm -rf root/DEBIAN