Compare commits
47 Commits
dd73ab6511
...
master
Author | SHA1 | Date | |
---|---|---|---|
16674d6567 | |||
a252de6aaf | |||
c918b8bc31 | |||
8da918d63f | |||
dcbe9e0d6e | |||
71e1ec3182 | |||
89cf8a1e79 | |||
406bacd457 | |||
7297664d07 | |||
78022aa994 | |||
2ccd4fafdd | |||
38b3269561 | |||
fb2280a930 | |||
0be420c427 | |||
b3d78869bf | |||
cc2bc90f74 | |||
b38bb6367a | |||
0949c38858 | |||
38535efffa | |||
ce3cce79b1 | |||
524db69b3e | |||
bee397d008 | |||
fc122481df | |||
14c009c8f8 | |||
c35876a9cd | |||
bc3de60504 | |||
d756a3ffa9 | |||
8b0927a176 | |||
944bff4904 | |||
e94b285c24 | |||
a2c88090f8 | |||
daf3a9f2bc | |||
4e63ee2b43 | |||
2664052c22 | |||
91f5d67738 | |||
69bc12addc | |||
1218e732b3 | |||
cee2491e03 | |||
a90d5da27f | |||
beb516a279 | |||
57a16178e6 | |||
1337aabdff | |||
41e02f0887 | |||
969aeea3fc | |||
0cecfe6a91 | |||
ec2af2186a | |||
8f1ab0d7d0 |
32
.githooks/post-merge
Executable file
32
.githooks/post-merge
Executable file
@@ -0,0 +1,32 @@
|
||||
#!/bin/bash -
|
||||
|
||||
# FILE="/tmp/post-merge$(date +%FT%H-%M-%S)"
|
||||
# commit=$(git rev-parse --verify HEAD)
|
||||
# echo "$commit $(git cat-file commit $commit)" >> /tmp/post-merge
|
||||
|
||||
# Redirect output to stderr.
|
||||
exec 1>&2
|
||||
|
||||
if [ -z $IFS ]; then
|
||||
IFS=$'\n'
|
||||
fi
|
||||
|
||||
GIT_PULL_TMP=/tmp/git_pull
|
||||
OPKG_CMDS_TMP=/tmp/opkg_commands
|
||||
|
||||
for fn in $(git diff-tree -r HEAD@{1} HEAD --name-only); do
|
||||
if grep -E -q "(DC.*json|dc2c.hex|tariff.*json)" <<< $fn; then
|
||||
echo "$fn" >> $GIT_PULL_TMP
|
||||
fi
|
||||
if grep -E -q ".*opkg_commands" <<< $fn; then
|
||||
readarray opkg_commands < <(cat $fn)
|
||||
for opkg_c in "${opkg_commands[@]}"; do
|
||||
test -z $opkg_c && continue;
|
||||
test ! -z $(grep -E "^\s*[#]+.*$" <<< $opkg_c) && continue
|
||||
echo -n "$opkg_c" | tr -d '\n\r' >> $OPKG_CMDS_TMP 2>&1
|
||||
echo "" >> $OPKG_CMDS_TMP 2>&1
|
||||
done
|
||||
source "$fn"
|
||||
fi
|
||||
done
|
||||
|
4
.gitignore
vendored
4
.gitignore
vendored
@@ -2,7 +2,7 @@
|
||||
|
||||
## Except
|
||||
!**/.gitignore
|
||||
!**/.git/hooks/post-merge
|
||||
!**/.git/hooks/*
|
||||
!/etc/*.ini
|
||||
!/etc/atb/*.ini
|
||||
!/etc/psa_config/*
|
||||
@@ -14,5 +14,5 @@
|
||||
!/opt/app/sysconfig/*.ini
|
||||
!/opt/app/ISMASMgr/*.ini
|
||||
|
||||
!/tmp/test.txt
|
||||
!**/.githooks/post-merge
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"title":"DC2C_pri30",
|
||||
"version":"27.02.2023 12:20 00001",
|
||||
"":""
|
||||
}
|
||||
"":"7777"
|
||||
}
|
||||
|
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"title":"DC2C_pri31",
|
||||
"version":"27.02.2023 12:20 00001",
|
||||
"":"iiii"
|
||||
"":"5555"
|
||||
}
|
||||
|
@@ -2,5 +2,5 @@
|
||||
"title":"DC2C_pri32",
|
||||
"version":"27.02.2023 12:20 00001",
|
||||
"":"",
|
||||
"":"iiii"
|
||||
"":"6666"
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
@@ -1,14 +0,0 @@
|
||||
*
|
||||
|
||||
!**/.gitignore
|
||||
!/etc/*.ini
|
||||
!/etc/atb/*.ini
|
||||
!/etc/psa_config/*
|
||||
!/etc/psa_update/*
|
||||
!/etc/psa_tariff/*
|
||||
!/etc/dc/dc2c.hex
|
||||
|
||||
!/opt/app/ATBAPP/*.ini
|
||||
!/opt/app/sysconfig/*.ini
|
||||
!/opt/app/ISMASMgr/*.ini
|
||||
|
File diff suppressed because it is too large
Load Diff
15
home/root/szeged/customer_szeged_281/.gitignore
vendored
15
home/root/szeged/customer_szeged_281/.gitignore
vendored
@@ -1,15 +0,0 @@
|
||||
## Ignore everything
|
||||
*
|
||||
|
||||
## Except
|
||||
!/etc/*.ini
|
||||
!/etc/atb/*.ini
|
||||
!/etc/psa_config/*
|
||||
!/etc/psa_update/*
|
||||
!/etc/psa_tariff/*
|
||||
!/etc/dc/*
|
||||
!/opt/app/ATBAPP/*.ini
|
||||
!/opt/app/ISMASMgr/*.ini
|
||||
!/opt/app/sysconfig/*.ini
|
||||
|
||||
|
18
opt/ptu5/opt/customer_szeged_281/.gitignore
vendored
18
opt/ptu5/opt/customer_szeged_281/.gitignore
vendored
@@ -1,18 +0,0 @@
|
||||
*
|
||||
|
||||
## Except
|
||||
!**/.gitignore
|
||||
!**/.git/hooks/post-merge
|
||||
!/etc/*.ini
|
||||
!/etc/atb/*.ini
|
||||
!/etc/psa_config/*
|
||||
!/etc/psa_update/*
|
||||
!/etc/psa_tariff/*
|
||||
!/etc/dc/dc2c.hex
|
||||
|
||||
!/opt/app/ATBAPP/*.ini
|
||||
!/opt/app/sysconfig/*.ini
|
||||
!/opt/app/ISMASMgr/*.ini
|
||||
|
||||
!/tmp/test.txt
|
||||
|
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"title":"DC2C_pri32",
|
||||
"version":"27.02.2023 12:20 00001",
|
||||
"":"",
|
||||
"":"9999"
|
||||
}
|
@@ -1 +0,0 @@
|
||||
bbbb
|
Reference in New Issue
Block a user