summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2010-11-08 20:51:25 +0100
committerGravatar waker <wakeroid@gmail.com>2010-11-08 20:51:25 +0100
commit21e46269269b82e756fef0051e0953c52d6be3ca (patch)
tree3de582687a866607fd412e2d66afa37abe8e056e /scripts
parentcf506bed40e38b855d0ce8be781d9b1941b795ca (diff)
moved most scripts to separate folder
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/insertlicense.sh20
-rw-r--r--scripts/pluginstall.sh36
-rwxr-xr-xscripts/portable_build.sh17
-rwxr-xr-xscripts/portable_package.sh74
-rwxr-xr-xscripts/portable_postbuild.sh64
-rwxr-xr-xscripts/portable_upload.sh9
-rwxr-xr-xscripts/u8_gperf.sh2
7 files changed, 222 insertions, 0 deletions
diff --git a/scripts/insertlicense.sh b/scripts/insertlicense.sh
new file mode 100755
index 00000000..b046a61c
--- /dev/null
+++ b/scripts/insertlicense.sh
@@ -0,0 +1,20 @@
+#!/bin/bash
+echo "IMPORTANT: Hit C-c if you forgot to backup/commit stuff!!!"
+read
+ls *.c *.h *.cpp | while read i; do
+ if [ "$i" == "deadbeef.h" ] || [ "$i" == "config.h" ] || grep --silent "DO NOT EDIT" "$i" ; then
+ echo "skipping $i (blacklist)"
+ elif grep --silent "DeaDBeeF - ultimate music player for GNU/Linux systems with X11" "$i" ; then
+ if grep --silent "version 3 of the License" "$i" ; then
+ echo "changing $i to gpl2"
+ sed -i 's/version 3 of the License/version 2 of the License/' "$i"
+ else
+ echo "skipping $i (already has license)"
+ fi
+ else
+ echo "adding license text to $i"
+ cat shortlicense >/tmp/deadbeef.lic.tmp
+ cat "$i" >>/tmp/deadbeef.lic.tmp
+ mv /tmp/deadbeef.lic.tmp "$i"
+ fi
+done
diff --git a/scripts/pluginstall.sh b/scripts/pluginstall.sh
new file mode 100644
index 00000000..cb296fac
--- /dev/null
+++ b/scripts/pluginstall.sh
@@ -0,0 +1,36 @@
+./scripts/portable_postbuild.sh
+
+#sudo cp ./deadbeef /usr/local/bin/
+#sudo cp ./plugins/nullout/.libs/nullout.so /usr/local/lib/deadbeef/
+#sudo cp ./plugins/cdda/.libs/cdda.so /usr/local/lib/deadbeef/
+#sudo cp ./plugins/flac/.libs/flac.so /usr/local/lib/deadbeef/
+#sudo cp ./plugins/alsa/.libs/alsa.so /usr/local/lib/deadbeef/
+#sudo cp ./plugins/mpgmad/.libs/mpgmad.so /usr/local/lib/deadbeef/
+#sudo cp ./plugins/hotkeys/.libs/hotkeys.so /usr/local/lib/deadbeef/
+#sudo cp ./plugins/vtx/.libs/vtx.so /usr/local/lib/deadbeef/
+#sudo cp ./plugins/ffap/.libs/ffap.so /usr/local/lib/deadbeef/
+#sudo cp ./plugins/wavpack/.libs/wavpack.so /usr/local/lib/deadbeef/
+#sudo cp ./plugins/vorbis/.libs/vorbis.so /usr/local/lib/deadbeef/
+#sudo cp ./plugins/oss/.libs/oss.so /usr/local/lib/deadbeef/
+#sudo cp ./plugins/vfs_curl/.libs/vfs_curl.so /usr/local/lib/deadbeef/
+#sudo cp ./plugins/ffmpeg/.libs/ffmpeg.so /usr/local/lib/deadbeef/
+#sudo cp ./plugins/lastfm/.libs/lastfm.so /usr/local/lib/deadbeef/
+#sudo cp ./plugins/sid/.libs/sid.so /usr/local/lib/deadbeef/
+#sudo cp ./plugins/adplug/.libs/adplug.so /usr/local/lib/deadbeef/
+#sudo cp ./plugins/gtkui/.libs/gtkui.so /usr/local/lib/deadbeef/
+#sudo cp ./plugins/sndfile/.libs/sndfile.so /usr/local/lib/deadbeef/
+#sudo cp ./plugins/pulse/.libs/pulse.so /usr/local/lib/deadbeef/
+#sudo cp ./plugins/artwork/.libs/artwork.so /usr/local/lib/deadbeef/
+#sudo cp ./plugins/supereq/.libs/supereq.so /usr/local/lib/deadbeef/
+#sudo cp ./plugins/gme/.libs/gme.so /usr/local/lib/deadbeef/
+#sudo cp ./plugins/dumb/.libs/dumb.so /usr/local/lib/deadbeef/
+#sudo cp ./plugins/notify/.libs/notify.so /usr/local/lib/deadbeef/
+#sudo cp ./plugins/musepack/.libs/musepack.so /usr/local/lib/deadbeef/
+#sudo cp ./plugins/wildmidi/.libs/wildmidi.so /usr/local/lib/deadbeef/
+#sudo cp ./plugins/tta/.libs/tta.so /usr/local/lib/deadbeef/
+#sudo cp ./plugins/dca/.libs/dca.so /usr/local/lib/deadbeef/
+#sudo cp ./plugins/aac/.libs/aac.so /usr/local/lib/deadbeef/
+#sudo cp ./plugins/mms/.libs/mms.so /usr/local/lib/deadbeef/
+#sudo cp ./plugins/shn/.libs/shn.so /usr/local/lib/deadbeef/
+#sudo cp ./plugins/ao/.libs/ao.so /usr/local/lib/deadbeef/
+#sudo cp ./plugins/shellexec/.libs/shellexec.so /usr/local/lib/deadbeef/
diff --git a/scripts/portable_build.sh b/scripts/portable_build.sh
new file mode 100755
index 00000000..e973993b
--- /dev/null
+++ b/scripts/portable_build.sh
@@ -0,0 +1,17 @@
+#!/bin/sh
+VERSION=`cat PORTABLE_VERSION | perl -ne 'chomp and print'`
+ORIGIN=`pwd | perl -ne 'chomp and print'`
+export APBUILD_STATIC_LIBGCC=1
+
+CC=$ORIGIN/tools/apbuild/apgcc CXX=$ORIGIN/tools/apbuild/apgcc ./configure --enable-portable --disable-pulse --disable-mpris --enable-maintainer-mode --disable-nls
+sed -i 's/-lstdc++ -lm -lgcc_s -lc -lgcc_s/-lm -lc/g' libtool
+make clean
+make -j9
+
+echo "building pluginfo tool..."
+cd tools/pluginfo
+make
+cd ../../
+
+./portable_postbuild.sh
+
diff --git a/scripts/portable_package.sh b/scripts/portable_package.sh
new file mode 100755
index 00000000..bf292789
--- /dev/null
+++ b/scripts/portable_package.sh
@@ -0,0 +1,74 @@
+#!/bin/sh
+
+# package for distribution
+VERSION=`cat PORTABLE_VERSION | perl -ne 'chomp and print'`
+BUILD=`cat PORTABLE_BUILD | perl -ne 'chomp and print'`
+
+# main distro
+SRCDIR=deadbeef-$VERSION-portable
+PLUGDIR=$SRCDIR/plugins
+DOCDIR=$SRCDIR/doc
+PIXMAPDIR=$SRCDIR/pixmaps
+
+mkdir -p portable_out/build 2>/dev/null
+rm portable_out/* 2>/dev/null
+rm portable_out/build/* 2>/dev/null
+
+tar jcvf portable_out/build/deadbeef-$VERSION-portable-build$BUILD.tar.bz2\
+ $SRCDIR/deadbeef\
+ $SRCDIR/deadbeef.png\
+ $DOCDIR\
+ $PLUGDIR/alsa.so\
+ $PLUGDIR/oss.so\
+ $PLUGDIR/vfs_curl.so\
+ $PLUGDIR/artwork.so\
+ $PLUGDIR/gtkui.so\
+ $PLUGDIR/gtkui.fallback.so\
+ $PLUGDIR/hotkeys.so\
+ $PLUGDIR/cdda.so\
+ $PLUGDIR/mpgmad.so\
+ $PLUGDIR/vorbis.so\
+ $PLUGDIR/wavpack.so\
+ $PLUGDIR/flac.so\
+ $PLUGDIR/ffap.so\
+ $PLUGDIR/musepack.so\
+ $PLUGDIR/notify.so\
+ $PLUGDIR/sndfile.so\
+ $PLUGDIR/supereq.so\
+ $PLUGDIR/tta.so\
+ $PIXMAPDIR
+
+# plugins
+cd $PLUGDIR
+
+plugtable=../../../deadbeef-web/web/plugins-autogen.mkd
+echo "<table><tr><th>Name</th><th>Version</th><th>Size</th><th>For Deadbeef</th><th>Description</th><th>Author(s)</th></tr>" >$plugtable
+
+PLUGINFO=../../tools/pluginfo/pluginfo
+
+for i in *.so ; do
+ plugname=`basename $i .so`
+ echo $plugname
+
+ version=""
+ $PLUGINFO ./$i >./temp.sh
+ RET=$?
+ if [ "$RET" = "0" ]; then
+ source ./temp.sh
+ rm ./temp.sh
+ if [[ -n $version ]]; then
+ echo "$plugname version $version"
+ else
+ echo "$plugname version not found"
+ fi
+ fname=../../portable_out/deadbeef-$VERSION-portable-$plugname-$version.tar.bz2
+ tar jcvf $fname $i
+ fsize=$(stat -c%s "$fname")
+
+ # add some markdown
+ echo "<tr><td><a href="http://sourceforge.net/projects/deadbeef/files/portable/$VERSION/deadbeef-$VERSION-portable-$plugname-$version.tar.bz2/download">$name ($plugname)</a></td><td>$version</td><td>$fsize</td><td>$VERSION</td><td>$descr</td><td>$author ($email, $website)</td></tr>" >>$plugtable
+ fi
+done
+echo "</table>" >>$plugtable
+cd ../../
+
diff --git a/scripts/portable_postbuild.sh b/scripts/portable_postbuild.sh
new file mode 100755
index 00000000..5deb7045
--- /dev/null
+++ b/scripts/portable_postbuild.sh
@@ -0,0 +1,64 @@
+#!/bin/sh
+VERSION=`cat PORTABLE_VERSION | perl -ne 'chomp and print'`
+OUTDIR=deadbeef-$VERSION-portable
+PLUGDIR=$OUTDIR/plugins
+DOCDIR=$OUTDIR/doc
+PIXMAPDIR=$OUTDIR/pixmaps
+mkdir -p $PLUGDIR
+mkdir -p $DOCDIR
+mkdir -p $PIXMAPDIR
+
+cp ./deadbeef ./deadbeef-$VERSION-portable/
+cp ./plugins/nullout/.libs/nullout.so $PLUGDIR/
+cp ./plugins/cdda/.libs/cdda.so $PLUGDIR/
+cp ./plugins/flac/.libs/flac.so $PLUGDIR/
+cp ./plugins/alsa/.libs/alsa.so $PLUGDIR/
+cp ./plugins/mpgmad/.libs/mpgmad.so $PLUGDIR/
+cp ./plugins/hotkeys/.libs/hotkeys.so $PLUGDIR/
+cp ./plugins/vtx/.libs/vtx.so $PLUGDIR/
+cp ./plugins/ffap/.libs/ffap.so $PLUGDIR/
+cp ./plugins/ffmpeg/.libs/ffmpeg.so $PLUGDIR/
+cp ./plugins/wavpack/.libs/wavpack.so $PLUGDIR/
+cp ./plugins/vorbis/.libs/vorbis.so $PLUGDIR/
+cp ./plugins/oss/.libs/oss.so $PLUGDIR/
+cp ./plugins/vfs_curl/.libs/vfs_curl.so $PLUGDIR/
+cp ./plugins/lastfm/.libs/lastfm.so $PLUGDIR/
+cp ./plugins/sid/.libs/sid.so $PLUGDIR/
+cp ./plugins/adplug/.libs/adplug.so $PLUGDIR/
+cp ./plugins/gtkui/.libs/gtkui.so $PLUGDIR/
+cp ./plugins/gtkui/.libs/gtkui.fallback.so $PLUGDIR/
+cp ./plugins/sndfile/.libs/sndfile.so $PLUGDIR/
+cp ./plugins/artwork/.libs/artwork.so $PLUGDIR/
+cp ./plugins/supereq/.libs/supereq.so $PLUGDIR/
+cp ./plugins/gme/.libs/gme.so $PLUGDIR/
+cp ./plugins/dumb/.libs/dumb.so $PLUGDIR/
+cp ./plugins/notify/.libs/notify.so $PLUGDIR/
+cp ./plugins/musepack/.libs/musepack.so $PLUGDIR/
+cp ./plugins/wildmidi/.libs/wildmidi.so $PLUGDIR/
+cp ./plugins/tta/.libs/tta.so $PLUGDIR/
+cp ./plugins/dca/.libs/dca.so $PLUGDIR/
+cp ./plugins/aac/.libs/aac.so $PLUGDIR/
+cp ./plugins/mms/.libs/mms.so $PLUGDIR/
+cp ./plugins/shn/.libs/shn.so $PLUGDIR/
+cp ./plugins/ao/.libs/ao.so $PLUGDIR/
+cp ./plugins/shellexec/.libs/shellexec.so $PLUGDIR/
+
+#pixmaps
+cp ./pixmaps/pause_16.png $PIXMAPDIR/
+cp ./pixmaps/play_16.png $PIXMAPDIR/
+cp ./pixmaps/buffering_16.png $PIXMAPDIR/
+cp ./pixmaps/noartwork.jpg $PIXMAPDIR/
+
+# docs
+cp ./ChangeLog $DOCDIR/
+cp ./help.txt $DOCDIR/
+cp ./COPYING.GPLv2 $DOCDIR/
+cp ./about.txt $DOCDIR/
+cp ./translators.txt $DOCDIR/
+
+# icon
+cp ./icons/32x32/deadbeef.png $OUTDIR/
+
+# strip
+strip --strip-unneeded ./deadbeef-$VERSION-portable/deadbeef
+for i in $PLUGDIR/*.so ; do strip --strip-unneeded $i ; done
diff --git a/scripts/portable_upload.sh b/scripts/portable_upload.sh
new file mode 100755
index 00000000..482e66ea
--- /dev/null
+++ b/scripts/portable_upload.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+VERSION=`cat PORTABLE_VERSION | perl -ne 'chomp and print'`
+BUILD=`cat PORTABLE_BUILD | perl -ne 'chomp and print'`
+
+UPLOAD_URI=waker,deadbeef@frs.sourceforge.net:/home/frs/project/d/de/deadbeef/portable/$VERSION/
+
+scp portable_out/* $UPLOAD_URI/
+scp portable_out/build/* $UPLOAD_URI/
diff --git a/scripts/u8_gperf.sh b/scripts/u8_gperf.sh
new file mode 100755
index 00000000..3ecffc3e
--- /dev/null
+++ b/scripts/u8_gperf.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+gperf -c -t -H u8_lc_hash -N u8_lc_in_word_set u8_lc_map.txt >u8_lc_map.h