Skip to content

Commit

Permalink
New files organization
Browse files Browse the repository at this point in the history
Signed-off-by: Aurélien PIERRE <[email protected]>
  • Loading branch information
aurelienpierre committed Jan 4, 2015
1 parent 514257c commit a443a24
Show file tree
Hide file tree
Showing 13 changed files with 347 additions and 214 deletions.
Binary file added Debian/scan2thunderbird_0.2.deb
Binary file not shown.
Binary file added Debian/scan2thunderbird_1.0-beta.deb
Binary file not shown.
Binary file added Debian/scan2thunderbird_1.0.deb
Binary file not shown.
Binary file added Icons/s2t.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Icons/scan2thunderbird.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
330 changes: 330 additions & 0 deletions Icons/scan2thunderbird.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Icons/scan2thunderbird.xcf
Binary file not shown.
76 changes: 0 additions & 76 deletions README.md~

This file was deleted.

File renamed without changes.
File renamed without changes.
43 changes: 17 additions & 26 deletions scan2thunderbird.sh~ → Scripts/scan2thunderbird.sh
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
#!/bin/bash
# Scan2Thunderbird GUI #
# v0.2 #
# #
# Scan2Thunderbird GUI #
# v1.0 #
# #
# To run, this script needs this packages : #
# sane, imagemagick, gzip, thunderbird, zenity & shred #
# #
# GNU Public License v3 #
# #
# Copyright © 2012 Aurélien PIERRE #
# https://aurelienpierre.com - [email protected] #
# https://aurelienpierre.com - [email protected] #
# #
# #
# Scan2Thunderbird is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
# the Free Software Foundation, either version 3 of the License, or #
# (at your option) any later version. #
# #
# This program is distributed in the hope that it will be useful, #
# it under the terms of the GNU General Public License as published by #
# the Free Software Foundation, either version 3 of the License, or #
# (at your option) any later version. #
# #
# This program is distributed in the hope that it will be useful,#
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
# GNU General Public License for more details. #
Expand Down Expand Up @@ -142,7 +142,6 @@ rescan() {
clean() {
shred -n 35 -z -u /tmp/$name-*.tiff
shred -n 35 -z -u /tmp/$name-*.jpeg
shred -n 35 -z -u /tmp/$name.pdf.gz
shred -n 35 -z -u /tmp/$name*.pdf
}

Expand Down Expand Up @@ -258,14 +257,9 @@ quit "$?"
--auto-close
quit "$?"

# Compress the PDF file

cp /tmp/$name.pdf /tmp/$name-2.pdf
gzip --best -f /tmp/$name.pdf

# Check file weight

FILESIZE=$(stat -c%s "/tmp/$name.pdf.gz")
FILESIZE=$(stat -c%s "/tmp/$name.pdf")

qual=$quality

Expand All @@ -281,23 +275,21 @@ quit "$?"
rescan "$min_resolution" "$min_crop" "$pages" "$couleur" "$qual"
merge "$min_resolution" "$min_crop" "$pages" "$couleur" "$qual"

cp /tmp/$name.pdf /tmp/$name-2.pdf
gzip --best -f /tmp/$name.pdf

FILESIZE=$(stat -c%s "/tmp/$name.pdf.gz")
FILESIZE=$(stat -c%s "/tmp/$name.pdf")

qual=$(($qual-1))
done

# Preview and send

evince /tmp/$name-2.pdf &
thunderbird -compose "to='',subject='',body='$txt9',attachment='file:///tmp/$name.pdf.gz'"
evince /tmp/$name.pdf &
thunderbird -compose "to='',subject='',body='',attachment='file:///tmp/$name.pdf'"
wait $!

if [ ps -p $! ]; then
sleep 500
fi
while [ ps -p $! ]
do
sleep 500
done


delete=`zenity --question --text="$txt24 $name.pdf ?"`
Expand All @@ -306,7 +298,6 @@ quit "$?"

if [ "$?" -eq "0" ]; then
file=`zenity --file-selection --save --filename=/$HOME/$USER/ --title="$txt25 ?"`
cp /tmp/$name-2.pdf /$file.pdf
clean
else
clean
Expand Down
27 changes: 0 additions & 27 deletions changelog~

This file was deleted.

85 changes: 0 additions & 85 deletions scan2thunderbird-fr_FR.po~

This file was deleted.

0 comments on commit a443a24

Please sign in to comment.