Skip to content

Commit 8625e5f

Browse files
committed
adapted certain things to match this repository style again.
1 parent b7b8670 commit 8625e5f

File tree

5 files changed

+18
-22
lines changed

5 files changed

+18
-22
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.DS_Store
2+
*.tar.gz

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.1
1+
2.2

generate_img.sh

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
#!/bin/sh
2-
COPYFILE_DISABLE=1; export COPYFILE_DISABLE
3-
rm -f *.tar.gz
4-
52
mkdir -p tmp/addon/
63
cp -a update_script tmp/
74
cp -a rc.d tmp/
@@ -10,11 +7,9 @@ cp -a VERSION tmp/addon/
107
cd tmp
118
chmod +x update_script
129

13-
find . -name ".DS_Store" -exec rm -rf {} \;
14-
find . -name "._*" -exec rm -rf {} \;
15-
dot_clean .
10+
[ -f /usr/sbin/dot_clean ] && dot_clean .
1611

17-
tar -zcf ../hm-print-$(cat ../VERSION).tar.gz *
12+
COPYFILE_DISABLE=1 tar --owner=root --group=root --exclude=.DS_Store -czvf ../hm-print-$(cat ../VERSION).tar.gz *
1813

1914
cd ..
2015
rm -rf tmp

rc.d/programmedrucken

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ RCGISTRING="setFooter(s); var scriptpp = document.createElement(\\\\\"script\\\\
2323
SSTRINGZWO="setFooter(s);"
2424
RSTRINGZWO="setFooter(s); var scriptpp = document.createElement(\"script\"); scriptpp.type = \"text/javascript\"; scriptpp.src = \"/addons/print/functions.js\"; \$(\"body\").appendChild(scriptpp);"
2525

26-
# String to include the print button for single "Direkte Verknüpfung"
26+
# String to include the print button for single "Direkte Verknüpfung"
2727
SCGISTRINGZWO="<td style='text-align:center; vertical-align:middle;'><div class='FooterButton' onclick='CollectData_SaveProfileSettings(0);'>\\\\\${footerBtnOk}</div></td>\\\\\";"
2828
RCGISTRINGZWO="<td style='text-align:center; vertical-align:middle;'><div class='FooterButton' onclick='CollectData_SaveProfileSettings(0);'>\\\\\${footerBtnOk}</div></td><td style='text-align:center; vertical-align:middle;'><div class='FooterButton' onclick='PrintPage();'>Drucken</div></td>\\\\\";"
2929

30-
# String to include the overview print button in "Direkte Verknüpfungen"
30+
# String to include the overview print button in "Direkte Verknüpfungen"
3131
SOVERDVCGI="<td style='text-align:center; vertical-align:middle;'><div class='FooterButton CLASS22100' onclick='loadNewLinkPage();' >\\\\\"+ translateKey('footerBtnNewLink') +\\\\\"</div></td>\\\\\";"
3232
ROVERDVCGI="<td style='text-align:center; vertical-align:middle;'><div class='FooterButton CLASS22100' onclick='loadNewLinkPage();' >\\\\\"+ translateKey('footerBtnNewLink') +\\\\\"</div></td></td><td style='text-align:center; vertical-align:middle;'><div class='FooterButton CLASS04906' onclick='PrintAllDV();'>\&Uuml;bersicht Drucken</div></td>\\\\\";"
3333

34-
# String to include the print button in "Geräteparameter"
34+
# String to include the print button in "Geräteparameter"
3535
SDEVPARACGI="<td style='text-align:center; vertical-align:middle;'><div class='FooterButton' onclick='CloseDeviceParameters();'>\\\\\"+translateKey('footerBtnCancel')+\\\\\"</div></td>\\\\\";"
3636
RDEVPARACGI="<td style='text-align:center; vertical-align:middle;'><div class='FooterButton' onclick='CloseDeviceParameters();'>\\\\\"+translateKey('footerBtnCancel')+\\\\\"</div></td><td style='text-align:center; vertical-align:middle;'><div class='FooterButton' onclick='PrintDevPara();'>Drucken</div></td>\\\\\";"
3737

@@ -55,15 +55,15 @@ RCGISTRING="setFooter(s); var scriptpp = document.createElement(\\\\\"script\\\\
5555
SSTRINGZWO="setFooter(s);"
5656
RSTRINGZWO="setFooter(s); var scriptpp = document.createElement(\"script\"); scriptpp.type = \"text/javascript\"; scriptpp.src = \"/addons/print/functions.js\"; \$(\"body\").appendChild(scriptpp);"
5757

58-
# String to include the print button for single "Direkte Verknüpfung"
58+
# String to include the print button for single "Direkte Verknüpfung"
5959
SCGISTRINGZWO="<td align='center' valign='middle'><div class='FooterButton' onclick='CollectData_SaveProfileSettings(0);'>\\\\\${footerBtnOk}</div></td>\\\\\";"
6060
RCGISTRINGZWO="<td align='center' valign='middle'><div class='FooterButton' onclick='CollectData_SaveProfileSettings(0);'>\\\\\${footerBtnOk}</div></td><td align='center' valign='middle'><div class='FooterButton' onclick='PrintPage();'>Drucken</div></td>\\\\\";"
6161

62-
# String to include the overview print button in "Direkte Verknüpfungen"
62+
# String to include the overview print button in "Direkte Verknüpfungen"
6363
SOVERDVCGI="<td align='center' valign='middle'><div class='FooterButton CLASS22100' onclick='loadNewLinkPage();' >\\\\\"+ translateKey('footerBtnNewLink') +\\\\\"</div></td>\\\\\";"
6464
ROVERDVCGI="<td align='center' valign='middle'><div class='FooterButton CLASS22100' onclick='loadNewLinkPage();' >\\\\\"+ translateKey('footerBtnNewLink') +\\\\\"</div></td></td><td align='center' valign='middle'><div class='FooterButton CLASS04906' onclick='PrintAllDV();'>\&Uuml;bersicht Drucken</div></td>\\\\\";"
6565

66-
# String to include the print button in "Geräteparameter"
66+
# String to include the print button in "Geräteparameter"
6767
SDEVPARACGI="<td align='center' valign='middle'><div class='FooterButton' onclick='CloseDeviceParameters();'>\\\\\"+translateKey('footerBtnCancel')+\\\\\"</div></td>\\\\\";"
6868
RDEVPARACGI="<td align='center' valign='middle'><div class='FooterButton' onclick='CloseDeviceParameters();'>\\\\\"+translateKey('footerBtnCancel')+\\\\\"</div></td><td align='center' valign='middle'><div class='FooterButton' onclick='PrintDevPara();'>Drucken</div></td>\\\\\";"
6969

@@ -199,11 +199,10 @@ case "$1" in
199199

200200
;;
201201
info)
202-
echo "Info: <b>Programmedrucken</b><br>"
203-
echo "Info: <b>CCU2 & RaspberryMatic</b><br>"
204-
echo "Info: (c) 2010-2017 HMside, anli<br><br>"
205-
echo "Info: (c) 2020 modified by jp112sdl for 3.53.xx<br>"
206-
echo "Info: <a href='https://github.com/jp112sdl/hm-print'>Fork on Github</a>"
202+
echo "Info: <b>Programmedrucken CCU Addon</b><br/>"
203+
echo "Info: Erzeugt Druckansichten für Programme<br/><br/>"
204+
echo "Info: (c) 2010-2020 HMside, anli, jp112sdl, jens-maus<br/>"
205+
echo "Info: <a href='https://github.com/litti/hm-print'>https://github.com/litti/hm-print</a>"
207206
echo "Version: $(cat ${ADDON_DIR}/VERSION)"
208207
echo "Name: Programmedrucken"
209208
echo "Operations: uninstall"

www/update-check.cgi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/tclsh
22

3-
set checkURL "https://raw.githubusercontent.com/jp112sdl/hm-print/master/VERSION"
4-
set downloadURL "https://github.com/jp112sdl/hm-print/releases"
3+
set checkURL "https://raw.githubusercontent.com/litti/hm-print/master/VERSION"
4+
set downloadURL "https://github.com/litti/hm-print/releases"
55

66
catch {
77
set input $env(QUERY_STRING)
@@ -26,4 +26,4 @@ if { [info exists cmd ] && $cmd == "download"} {
2626
} else {
2727
puts "n/a"
2828
}
29-
}
29+
}

0 commit comments

Comments
 (0)