-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmake.package
More file actions
executable file
·33 lines (25 loc) · 854 Bytes
/
make.package
File metadata and controls
executable file
·33 lines (25 loc) · 854 Bytes
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
#!/bin/bash
# Custom HAPI package creation.
DC=$(date +%y%m%d%H%M)
SEQ=38
PKG=custom_hapi
# Create release dir if it doesn't exist.
mkdir -p release/
# Create an "old releases" dir and move all the old releases there.
mkdir -p old_rel/ ; mv release/* old_rel/
# Remove all old code.
rm -Rf opkg/*
# Create new dir for code to be tgz'd.
mkdir -p opkg/usr/local/HAPI
# Create new dir for pythonpath script and copy script there.
mkdir -p opkg/etc/profile.d/
cp ./hapi.sh opkg/etc/profile.d/
# Copy HAPI code to be tgz'd.
cp -a acq400_hapi/* opkg/usr/local/HAPI
# Remove data files to make a smaller tarball.
rm -rf opkg/usr/local/HAPI/user_apps/DATA/*.dat
# Tar the files
tar cvzf release/${SEQ}-${PKG}-${DC}.tgz -C opkg .
ls -l release/${SEQ}-${PKG}-${DC}.tgz
#rm -f ${PACKAGES}/${SEQ}-${PKG}*
#cp release/${SEQ}-${PKG}-${DC}.tgz ${PACKAGES}