root/release.sh

Revision 1, 0.6 kB (checked in by ixs, 13 years ago)

initial checkin

  • Property svn:executable set to *
Line 
1 #!/bin/bash
2
3 set -ex
4
5 D=${PWD}
6
7 NAME=LADVD
8
9 rm -rf tmp/${NAME}
10 mkdir tmp/${NAME}
11
12 cp -a ${D}/module/* ${D}/tmp/${NAME}/
13 cp -a ${D}/tmp/install/* ${D}/tmp/${NAME}/system/
14
15
16 # Binary file
17 pushd ${D}/tmp/
18 VERSION=$(cat ${D}/module/Configure/install.rdf | grep md:Version | cut -d '>' -f 2 | cut -d '<' -f 1)
19 tar cfvz ${D}/N5200_${NAME}-${VERSION}.mod --owner 0 --group 0 ${NAME}/
20 popd
21
22 # Source file
23 mkdir N5200_${NAME}-${VERSION}-src
24 cp -a build.sh release.sh ladvd-mock-build.sh module sources N5200_${NAME}-${VERSION}-src
25 tar cfvz ${D}/N5200_${NAME}-${VERSION}-src.tar.gz --owner 0 --group 0 N5200_${NAME}-${VERSION}-src
26 rm -rf N5200_${NAME}-${VERSION}-src
Note: See TracBrowser for help on using the browser.