Skip to content

Commit

Permalink
adapted certain things to match this repository style again.
Browse files Browse the repository at this point in the history
  • Loading branch information
jens-maus committed Nov 3, 2020
1 parent b7b8670 commit 8625e5f
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 22 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.DS_Store
*.tar.gz
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.1
2.2
9 changes: 2 additions & 7 deletions generate_img.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
#!/bin/sh
COPYFILE_DISABLE=1; export COPYFILE_DISABLE
rm -f *.tar.gz

mkdir -p tmp/addon/
cp -a update_script tmp/
cp -a rc.d tmp/
Expand All @@ -10,11 +7,9 @@ cp -a VERSION tmp/addon/
cd tmp
chmod +x update_script

find . -name ".DS_Store" -exec rm -rf {} \;
find . -name "._*" -exec rm -rf {} \;
dot_clean .
[ -f /usr/sbin/dot_clean ] && dot_clean .

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

cd ..
rm -rf tmp
21 changes: 10 additions & 11 deletions rc.d/programmedrucken
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ RCGISTRING="setFooter(s); var scriptpp = document.createElement(\\\\\"script\\\\
SSTRINGZWO="setFooter(s);"
RSTRINGZWO="setFooter(s); var scriptpp = document.createElement(\"script\"); scriptpp.type = \"text/javascript\"; scriptpp.src = \"/addons/print/functions.js\"; \$(\"body\").appendChild(scriptpp);"

# String to include the print button for single "Direkte Verknüpfung"
# String to include the print button for single "Direkte Verknüpfung"
SCGISTRINGZWO="<td style='text-align:center; vertical-align:middle;'><div class='FooterButton' onclick='CollectData_SaveProfileSettings(0);'>\\\\\${footerBtnOk}</div></td>\\\\\";"
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>\\\\\";"

# String to include the overview print button in "Direkte Verknüpfungen"
# String to include the overview print button in "Direkte Verknüpfungen"
SOVERDVCGI="<td style='text-align:center; vertical-align:middle;'><div class='FooterButton CLASS22100' onclick='loadNewLinkPage();' >\\\\\"+ translateKey('footerBtnNewLink') +\\\\\"</div></td>\\\\\";"
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>\\\\\";"

# String to include the print button in "Geräteparameter"
# String to include the print button in "Geräteparameter"
SDEVPARACGI="<td style='text-align:center; vertical-align:middle;'><div class='FooterButton' onclick='CloseDeviceParameters();'>\\\\\"+translateKey('footerBtnCancel')+\\\\\"</div></td>\\\\\";"
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>\\\\\";"

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

# String to include the print button for single "Direkte Verknüpfung"
# String to include the print button for single "Direkte Verknüpfung"
SCGISTRINGZWO="<td align='center' valign='middle'><div class='FooterButton' onclick='CollectData_SaveProfileSettings(0);'>\\\\\${footerBtnOk}</div></td>\\\\\";"
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>\\\\\";"

# String to include the overview print button in "Direkte Verknüpfungen"
# String to include the overview print button in "Direkte Verknüpfungen"
SOVERDVCGI="<td align='center' valign='middle'><div class='FooterButton CLASS22100' onclick='loadNewLinkPage();' >\\\\\"+ translateKey('footerBtnNewLink') +\\\\\"</div></td>\\\\\";"
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>\\\\\";"

# String to include the print button in "Geräteparameter"
# String to include the print button in "Geräteparameter"
SDEVPARACGI="<td align='center' valign='middle'><div class='FooterButton' onclick='CloseDeviceParameters();'>\\\\\"+translateKey('footerBtnCancel')+\\\\\"</div></td>\\\\\";"
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>\\\\\";"

Expand Down Expand Up @@ -199,11 +199,10 @@ case "$1" in

;;
info)
echo "Info: <b>Programmedrucken</b><br>"
echo "Info: <b>CCU2 & RaspberryMatic</b><br>"
echo "Info: (c) 2010-2017 HMside, anli<br><br>"
echo "Info: (c) 2020 modified by jp112sdl for 3.53.xx<br>"
echo "Info: <a href='https://github.com/jp112sdl/hm-print'>Fork on Github</a>"
echo "Info: <b>Programmedrucken CCU Addon</b><br/>"
echo "Info: Erzeugt Druckansichten für Programme<br/><br/>"
echo "Info: (c) 2010-2020 HMside, anli, jp112sdl, jens-maus<br/>"
echo "Info: <a href='https://github.com/litti/hm-print'>https://github.com/litti/hm-print</a>"
echo "Version: $(cat ${ADDON_DIR}/VERSION)"
echo "Name: Programmedrucken"
echo "Operations: uninstall"
Expand Down
6 changes: 3 additions & 3 deletions www/update-check.cgi
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/tclsh

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

catch {
set input $env(QUERY_STRING)
Expand All @@ -26,4 +26,4 @@ if { [info exists cmd ] && $cmd == "download"} {
} else {
puts "n/a"
}
}
}

0 comments on commit 8625e5f

Please sign in to comment.